From: Zheng Zhu Date: Wed, 22 Sep 2004 05:20:51 +0000 (+0000) Subject: replacing wgLang with wgContLang X-Git-Tag: 1.5.0alpha1~1888 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=a02f30051bccd53ef20d2383871ca7ee4b8fae7a;p=lhc%2Fweb%2Fwiklou.git replacing wgLang with wgContLang --- diff --git a/maintenance/InitialiseMessages.inc b/maintenance/InitialiseMessages.inc index b582288106..64889477cc 100755 --- a/maintenance/InitialiseMessages.inc +++ b/maintenance/InitialiseMessages.inc @@ -14,7 +14,7 @@ /** */ function initialiseMessages( $overwrite = false, $messageArray = false ) { - global $wgLang, $wgScript, $wgServer, $wgAllMessagesEn; + global $wgContLang, $wgScript, $wgServer, $wgAllMessagesEn; global $wgOut, $wgArticle, $wgUser; global $wgMessageCache, $wgMemc, $wgDBname, $wgUseMemCached; @@ -93,8 +93,8 @@ function initialiseMessages( $overwrite = false, $messageArray = false ) { # Insert queries are done in one multi-row insert # Here's the start of it: $arr = array(); - $talk = $wgLang->getNsText( NS_TALK ); - $mwtalk = $wgLang->getNsText( NS_MEDIAWIKI_TALK ); + $talk = $wgContLang->getNsText( NS_TALK ); + $mwtalk = $wgContLang->getNsText( NS_MEDIAWIKI_TALK ); # Process each message foreach ( $sortedArray as $key => $enMsg ) { @@ -105,7 +105,7 @@ function initialiseMessages( $overwrite = false, $messageArray = false ) { if ( $messageArray ) { $message = $enMsg; } else { - $message = wfMsgNoDB( $key ); + $message = wfMsgNoDBForContent( $key ); } $titleObj = Title::newFromText( $key ); $title = $titleObj->getDBkey();