From: Alex Z Date: Sun, 11 Jan 2009 03:42:13 +0000 (+0000) Subject: (bug 16965) Follow-up to r45266, also don't record self-links, such as those created... X-Git-Tag: 1.31.0-rc.0~43460 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=bb7e5781a470cd100ffa8428cb8f4685dcdc6d06;p=lhc%2Fweb%2Fwiklou.git (bug 16965) Follow-up to r45266, also don't record self-links, such as those created by s. --- diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index 35cb5c922f..4ad252a7a7 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -94,6 +94,9 @@ class ParserOutput // We don't record Special: links currently // It might actually be wise to, but we'd need to do some normalization. return; + } elseif( $dbk === '' ) { + // Don't record self links - [[#Foo]] + return; } if ( !isset( $this->mLinks[$ns] ) ) { $this->mLinks[$ns] = array();