r45656 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45655‎ | r45656 | r45657 >
Date:03:42, 11 January 2009
Author:mrzman
Status:ok
Tags:
Comment:
(bug 16965) Follow-up to r45266, also don't record self-links, such as those created by <ref>s.
Modified paths:
  • /trunk/phase3/includes/parser/ParserOutput.php (modified) (history)

Diff [purge]

Index: trunk/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();

Follow-up revisions

RevisionCommit summaryAuthorDate
r47983* (bug 17713) Using links with only an anchor no longer add an dummy entry in...ialex17:44, 3 March 2009

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r45266Follow-up to r45174: (bug 16806) Fix regression from r44524 that caused links...brion00:05, 1 January 2009

Status & tagging log