use wgContLang to convert among different language variants
authorZheng Zhu <zhengzhu@users.mediawiki.org>
Wed, 22 Sep 2004 03:51:32 +0000 (03:51 +0000)
committerZheng Zhu <zhengzhu@users.mediawiki.org>
Wed, 22 Sep 2004 03:51:32 +0000 (03:51 +0000)
includes/Parser.php

index 8fd3c51..6c58641 100644 (file)
@@ -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<hr />', $text );