From: Mark A. Hershberger Date: Fri, 30 Jul 2010 19:51:39 +0000 (+0000) Subject: Make sure we get a good memCached object. X-Git-Tag: 1.31.0-rc.0~35825 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=18922443b335a886fe166422794a26d98b149e64;p=lhc%2Fweb%2Fwiklou.git Make sure we get a good memCached object. --- diff --git a/includes/parser/ParserCache.php b/includes/parser/ParserCache.php index 7ef1c387bb..20de904a99 100644 --- a/includes/parser/ParserCache.php +++ b/includes/parser/ParserCache.php @@ -4,6 +4,8 @@ * @todo document */ class ParserCache { + private $mMemc; + /** * Get an instance of this object */ @@ -23,6 +25,10 @@ class ParserCache { * @param $memCached Object */ function __construct( $memCached ) { + if ( !$memCached ) { + global $parserMemc; + $parserMemc = $memCached = wfGetParserCacheStorage(); + } $this->mMemc = $memCached; }