From: Platonides Date: Sat, 4 Dec 2010 23:36:54 +0000 (+0000) Subject: Revert r70202. Replace with an exception. X-Git-Tag: 1.31.0-rc.0~33567 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=71cb2b4aa175c120c1028ce684547f2f7c24880c;p=lhc%2Fweb%2Fwiklou.git Revert r70202. Replace with an exception. --- diff --git a/includes/parser/ParserCache.php b/includes/parser/ParserCache.php index adbbd18a47..a4b79b26a8 100644 --- a/includes/parser/ParserCache.php +++ b/includes/parser/ParserCache.php @@ -32,8 +32,7 @@ class ParserCache { */ function __construct( $memCached ) { if ( !$memCached ) { - global $parserMemc; - $parserMemc = $memCached = wfGetParserCacheStorage(); + throw MWException( "Tried to create a ParserCache with an invalid memcached" ); } $this->mMemc = $memCached; }