From 40cd22b4a9de5524901d9917df4d38984cff24d3 Mon Sep 17 00:00:00 2001 From: Zheng Zhu Date: Wed, 22 Sep 2004 03:51:32 +0000 Subject: [PATCH] use wgContLang to convert among different language variants --- includes/Parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.20.1