(bug 16965) Follow-up to r45266, also don't record self-links, such as those created...
authorAlex Z <mrzman@users.mediawiki.org>
Sun, 11 Jan 2009 03:42:13 +0000 (03:42 +0000)
committerAlex Z <mrzman@users.mediawiki.org>
Sun, 11 Jan 2009 03:42:13 +0000 (03:42 +0000)
includes/parser/ParserOutput.php

index 35cb5c9..4ad252a 100644 (file)
@@ -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();