Fix for linkPrefixExtension feature
This commit is contained in:
parent
634e1dc6c6
commit
8c5cecc577
1 changed files with 1 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue