Followup r83140, fix undefined $id
authorSam Reed <reedy@users.mediawiki.org>
Sun, 29 May 2011 14:28:01 +0000 (14:28 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 29 May 2011 14:28:01 +0000 (14:28 +0000)
includes/objectcache/ObjectCache.php

index eebff32..25d4d47 100644 (file)
@@ -64,7 +64,7 @@ class ObjectCache {
                        $class = $params['class'];
                        return new $class( $params );
                } else {
-                       throw new MWException( "The definition of cache type \"$id\" lacks both " . 
+                       throw new MWException( "The definition of cache type \"" . print_r( $params, true ) . "\" lacks both " .
                                "factory and class parameters." );
                }
        }