Fix for linkPrefixExtension feature
authorMr. E23 <e23@users.mediawiki.org>
Sat, 28 Feb 2004 02:29:51 +0000 (02:29 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Sat, 28 Feb 2004 02:29:51 +0000 (02:29 +0000)
includes/Parser.php

index 61d893c..2e6845d 100644 (file)
@@ -553,7 +553,6 @@ $t[] = "</table>" ;
                global $wgTitle, $wgUser, $wgLang;
                global $wgLinkCache, $wgInterwikiMagic, $wgUseCategoryMagic;
                global $wgNamespacesWithSubpages, $wgLanguageCode;
-               global $wgUseLinkPrefixCombination;
                wfProfileIn( $fname = "OutputPage::replaceInternalLinks" );
 
                wfProfileIn( "$fname-setup" );
@@ -591,7 +590,7 @@ $t[] = "</table>" ;
 
                foreach ( $a as $line ) {
                        $prefix = $new_prefix;
-                       if ( $wgUseLinkPrefixCombination && preg_match( $e2, $line, $m ) ) {
+                       if ( $wgLang->linkPrefixExtension() && preg_match( $e2, $line, $m ) ) {
                                $new_prefix = $m[2];
                                $line = $m[1];
                        } else {