Merge "Allow passing detailed permission errors data to API"
[lhc/web/wiklou.git] / includes / GlobalFunctions.php
index 7c57207..421cd90 100644 (file)
@@ -4015,7 +4015,7 @@ function wfIsBadImage( $name, $contextTitle = false, $blacklist = null ) {
                return $bad;
        }
 
-       $cache = ObjectCache::newAccelerator( 'hash' );
+       $cache = ObjectCache::getLocalServerInstance( 'hash' );
        $key = wfMemcKey( 'bad-image-list', ( $blacklist === null ) ? 'default' : md5( $blacklist ) );
        $badImages = $cache->get( $key );