Followup r77748, throw NEW MWException
authorSam Reed <reedy@users.mediawiki.org>
Sun, 5 Dec 2010 00:37:44 +0000 (00:37 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 5 Dec 2010 00:37:44 +0000 (00:37 +0000)
includes/parser/ParserCache.php

index a4b79b2..ea0292b 100644 (file)
@@ -32,7 +32,7 @@ class ParserCache {
         */
        function __construct( $memCached ) {
                if ( !$memCached ) {
-                       throw MWException( "Tried to create a ParserCache with an invalid memcached" );
+                       throw new MWException( "Tried to create a ParserCache with an invalid memcached" );
                }
                $this->mMemc = $memCached;
        }