# Loop for each link
for ($k = 0; isset( $a[$k] ); $k++) {
$line = $a[$k];
- wfProfileIn( $fname.'-prefixhandling' );
if ( $useLinkPrefixExtension ) {
+ wfProfileIn( $fname.'-prefixhandling' );
if ( preg_match( $e2, $s, $m ) ) {
$prefix = $m[2];
$s = $m[1];
$prefix = $first_prefix;
$first_prefix = false;
}
+ wfProfileOut( $fname.'-prefixhandling' );
}
- wfProfileOut( $fname.'-prefixhandling' );
$might_be_img = false;
#check other language variants of the link
#if the article does not exist
- if( $nt->getArticleID() == 0
- && $checkVariantLink ) {
+ if( $checkVariantLink
+ && $nt->getArticleID() == 0 ) {
$wgContLang->findVariantLink($link, $nt);
}
# Get user options
function initialiseFromUser( &$userInput ) {
global $wgUseTeX, $wgUseDynamicDates, $wgInterwikiMagic, $wgAllowExternalImages;
-
$fname = 'ParserOptions::initialiseFromUser';
wfProfileIn( $fname );
if ( !$userInput ) {