From: Zheng Zhu Date: Wed, 22 Sep 2004 03:51:32 +0000 (+0000) Subject: use wgContLang to convert among different language variants X-Git-Tag: 1.5.0alpha1~1895 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=40cd22b4a9de5524901d9917df4d38984cff24d3;p=lhc%2Fweb%2Fwiklou.git use wgContLang to convert among different language variants --- diff --git a/includes/Parser.php b/includes/Parser.php index 8fd3c517b2..6c5864113e 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -643,7 +643,7 @@ class Parser * @access private */ function internalParse( $text, $linestart, $args = array(), $isMain=true ) { - global $wgLang; + global $wgContLang; $fname = 'Parser::internalParse'; wfProfileIn( $fname ); @@ -651,7 +651,7 @@ class Parser $text = $this->removeHTMLtags( $text ); $text = $this->replaceVariables( $text, $args ); - $text = $wgLang->convert($text); + $text = $wgContLang->convert($text); $text = preg_replace( '/(^|\n)-----*/', '\\1
', $text );