Ignore self-links for special pages. They might be there for a good reason, and the...
authorAndrew Garrett <werdna@users.mediawiki.org>
Wed, 6 Aug 2008 13:54:36 +0000 (13:54 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Wed, 6 Aug 2008 13:54:36 +0000 (13:54 +0000)
includes/parser/Parser.php

index b30ac82..7a2f5f7 100644 (file)
@@ -1745,7 +1745,7 @@ class Parser
                        }
 
                        # Self-link checking
-                       if( $nt->getFragment() === '' ) {
+                       if( $nt->getFragment() === '' && $nt->getNamespace() != NS_SPECIAL ) {
                                if( in_array( $nt->getPrefixedText(), $selflink, true ) ) {
                                        $s .= $prefix . $sk->makeSelfLinkObj( $nt, $text, '', $trail );
                                        continue;