Fix for linkPrefixExtension feature

This commit is contained in:
Mr. E23 2004-02-28 02:29:51 +00:00
parent 634e1dc6c6
commit 8c5cecc577

View 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 {