From: Tim Starling Date: Sat, 13 Nov 2004 14:24:42 +0000 (+0000) Subject: Fixed bug causing interwiki links to disappear unless accompanied by an internal... X-Git-Tag: 1.5.0alpha1~1353 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=ac77eb5b2c4104fec0ee289d44031c26982934cb;p=lhc%2Fweb%2Fwiklou.git Fixed bug causing interwiki links to disappear unless accompanied by an internal link --- diff --git a/includes/Parser.php b/includes/Parser.php index e7bbb39aa1..4ee535aad0 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2852,6 +2852,8 @@ class Parser */ function replaceLinkHolders( &$text, $options = 0 ) { global $wgUser, $wgLinkCache, $wgUseOldExistenceCheck, $wgLinkHolders; + global $wgInterwikiLinkHolders; + global $outputReplace; if ( $wgUseOldExistenceCheck ) { return array(); @@ -2944,7 +2946,6 @@ class Parser # Construct search and replace arrays wfProfileIn( $fname.'-construct' ); - global $outputReplace; $outputReplace = array(); foreach ( $wgLinkHolders['namespaces'] as $key => $ns ) { $pdbk = $pdbks[$key]; @@ -2976,9 +2977,10 @@ class Parser "outputReplaceMatches", $text); wfProfileOut( $fname.'-replace' ); + } + if ( !empty( $wgInterwikiLinkHolders ) ) { wfProfileIn( $fname.'-interwiki' ); - global $wgInterwikiLinkHolders; $outputReplace = $wgInterwikiLinkHolders; $text = preg_replace_callback( '//',