From: Zheng Zhu Date: Fri, 24 Sep 2004 13:10:38 +0000 (+0000) Subject: Sorry I forgot to commit the fix... X-Git-Tag: 1.5.0alpha1~1826 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=9ce318736682c756c1cc37f48846f7b06b0f3578;p=lhc%2Fweb%2Fwiklou.git Sorry I forgot to commit the fix... --- diff --git a/includes/MessageCache.php b/includes/MessageCache.php index 20ee91ec42..db06d95524 100755 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -23,12 +23,12 @@ class MessageCache var $mMemcKey, $mKeys, $mParserOptions, $mParser; var $mExtensionMessages; var $mInitialised = false; - var $mLang, $mLangCode; + var $mLang, $mLangCode; function initialise( &$memCached, $useDB, $expiry, $memcPrefix, $langobj, $langcode) { $fname = 'MessageCache::initialise'; wfProfileIn( $fname ); - $this->mLang = $langobj; - $this->mLangCode = $langcode; + $this->mLang = $langobj; + $this->mLangCode = $langcode; $this->mUseCache = !is_null( $memCached ); $this->mMemc = &$memCached; $this->mDisable = !$useDB; @@ -37,14 +37,14 @@ class MessageCache $this->mMemcKey = $memcPrefix.':messages'; $this->mKeys = false; # initialised on demand $this->mInitialised = true; - if ( isset ( $forContent ) ) $this->mIsForContent = $forContent; + wfProfileIn( $fname.'-parseropt' ); $this->mParserOptions = ParserOptions::newFromUser( $u=NULL ); wfProfileOut( $fname.'-parseropt' ); wfProfileIn( $fname.'-parser' ); $this->mParser = new Parser; wfProfileOut( $fname.'-parser' ); - + $this->load(); wfProfileOut( $fname ); }