Revert r70202. Replace with an exception.
authorPlatonides <platonides@users.mediawiki.org>
Sat, 4 Dec 2010 23:36:54 +0000 (23:36 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 4 Dec 2010 23:36:54 +0000 (23:36 +0000)
includes/parser/ParserCache.php

index adbbd18..a4b79b2 100644 (file)
@@ -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;
        }