r47983 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47982‎ | r47983 | r47984 >
Date:17:44, 3 March 2009
Author:ialex
Status:ok
Tags:
Comment:
* (bug 17713) Using links with only an anchor no longer add an dummy entry in the pagelinks table

This is a backport of r45656
Modified paths:
  • /branches/REL1_14/phase3/RELEASE-NOTES (modified) (history)
  • /branches/REL1_14/phase3/includes/parser/ParserOutput.php (modified) (history)

Diff [purge]

Index: branches/REL1_14/phase3/includes/parser/ParserOutput.php
@@ -94,6 +94,9 @@
9595 // We don't record Special: links currently
9696 // It might actually be wise to, but we'd need to do some normalization.
9797 return;
 98+ } elseif( $dbk === '' ) {
 99+ // Don't record self links - [[#Foo]]
 100+ return;
98101 }
99102 if ( !isset( $this->mLinks[$ns] ) ) {
100103 $this->mLinks[$ns] = array();
Index: branches/REL1_14/phase3/RELEASE-NOTES
@@ -26,6 +26,8 @@
2727
2828 == Changes since 1.14.0 ==
2929 * (bug 17737) Fixed russian URLs for Special:BookSources
 30+* (bug 17713) Using links with only an anchor no longer add an dummy entry in
 31+ the pagelinks table
3032
3133 == Changes since 1.14.0rc1 ==
3234

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r45656(bug 16965) Follow-up to r45266, also don't record self-links, such as those ...mrzman03:42, 11 January 2009

Status & tagging log