Merge "wfIsBadImage: Avoid deprecated wfMemcKey()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 27 May 2017 03:40:32 +0000 (03:40 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 27 May 2017 03:40:32 +0000 (03:40 +0000)
includes/GlobalFunctions.php

index 1859c02..e1d0520 100644 (file)
@@ -3515,7 +3515,9 @@ function wfIsBadImage( $name, $contextTitle = false, $blacklist = null ) {
        }
 
        $cache = ObjectCache::getLocalServerInstance( 'hash' );
-       $key = wfMemcKey( 'bad-image-list', ( $blacklist === null ) ? 'default' : md5( $blacklist ) );
+       $key = $cache->makeKey(
+               'bad-image-list', ( $blacklist === null ) ? 'default' : md5( $blacklist )
+       );
        $badImages = $cache->get( $key );
 
        if ( $badImages === false ) { // cache miss