From 71cb2b4aa175c120c1028ce684547f2f7c24880c Mon Sep 17 00:00:00 2001 From: Platonides Date: Sat, 4 Dec 2010 23:36:54 +0000 Subject: [PATCH] Revert r70202. Replace with an exception. --- includes/parser/ParserCache.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.20.1