r41342 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41341‎ | r41342 | r41343 >
Date:10:51, 28 September 2008
Author:ialex
Status:old
Tags:
Comment:
Use $wgContLang here, this should not vary with the user language.
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -2767,7 +2767,7 @@
27682768 * @private
27692769 */
27702770 function braceSubstitution( $piece, $frame ) {
2771 - global $wgContLang, $wgLang, $wgAllowDisplayTitle, $wgNonincludableNamespaces;
 2771+ global $wgContLang, $wgAllowDisplayTitle, $wgNonincludableNamespaces;
27722772 wfProfileIn( __METHOD__ );
27732773 wfProfileIn( __METHOD__.'-setup' );
27742774
@@ -3148,8 +3148,8 @@
31493149 if( $rev ) {
31503150 $text = $rev->getText();
31513151 } elseif( $title->getNamespace() == NS_MEDIAWIKI ) {
3152 - global $wgLang;
3153 - $message = $wgLang->lcfirst( $title->getText() );
 3152+ global $wgContLang;
 3153+ $message = $wgContLang->lcfirst( $title->getText() );
31543154 $text = wfMsgForContentNoTrans( $message );
31553155 if( wfEmptyMsg( $message, $text ) ) {
31563156 $text = false;

Status & tagging log