From: Alexandre Emsenhuber Date: Sun, 28 Sep 2008 10:51:58 +0000 (+0000) Subject: Use $wgContLang here, this should not vary with the user language. X-Git-Tag: 1.31.0-rc.0~45049 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=83cab059b3d6a37f00158ce1113b1dfc8e142638;p=lhc%2Fweb%2Fwiklou.git Use $wgContLang here, this should not vary with the user language. --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index c5b11acd0c..9e8ed0cecb 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -2767,7 +2767,7 @@ class Parser * @private */ function braceSubstitution( $piece, $frame ) { - global $wgContLang, $wgLang, $wgAllowDisplayTitle, $wgNonincludableNamespaces; + global $wgContLang, $wgAllowDisplayTitle, $wgNonincludableNamespaces; wfProfileIn( __METHOD__ ); wfProfileIn( __METHOD__.'-setup' ); @@ -3148,8 +3148,8 @@ class Parser if( $rev ) { $text = $rev->getText(); } elseif( $title->getNamespace() == NS_MEDIAWIKI ) { - global $wgLang; - $message = $wgLang->lcfirst( $title->getText() ); + global $wgContLang; + $message = $wgContLang->lcfirst( $title->getText() ); $text = wfMsgForContentNoTrans( $message ); if( wfEmptyMsg( $message, $text ) ) { $text = false;