global $wgTitle, $wgUser, $wgLang;
global $wgLinkCache, $wgInterwikiMagic, $wgUseCategoryMagic;
global $wgNamespacesWithSubpages, $wgLanguageCode;
- global $wgUseLinkPrefixCombination;
wfProfileIn( $fname = "OutputPage::replaceInternalLinks" );
wfProfileIn( "$fname-setup" );
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 {