fixed language linking bug left from elimination of globals
authorJens Frank <jeluf@users.mediawiki.org>
Sun, 14 Mar 2004 21:29:30 +0000 (21:29 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sun, 14 Mar 2004 21:29:30 +0000 (21:29 +0000)
includes/Parser.php

index 16ab810..11812bf 100644 (file)
@@ -792,7 +792,7 @@ class Parser
                $ns = $nt->getNamespace();
                $iw = $nt->getInterWiki();
                if( $noforce ) {
-                       if( $iw && $wgInterwikiMagic && $nottalk && $wgLang->getLanguageName( $iw ) ) {
+                       if( $iw && $this->mOptions->getInterwikiMagic() && $nottalk && $wgLang->getLanguageName( $iw ) ) {
                                array_push( $this->mOutput->mLanguageLinks, $nt->getPrefixedText() );
                                $s .= $prefix . $trail;
                                return $s;