From 83cab059b3d6a37f00158ce1113b1dfc8e142638 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 28 Sep 2008 10:51:58 +0000 Subject: [PATCH] Use $wgContLang here, this should not vary with the user language. --- includes/parser/Parser.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.20.1