wfIsBadImage: Avoid deprecated wfMemcKey()
authorKunal Mehta <legoktm@member.fsf.org>
Thu, 25 May 2017 19:26:19 +0000 (12:26 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Thu, 25 May 2017 19:37:35 +0000 (12:37 -0700)
Change-Id: I92133ed6a94902bdac2e9723f19a653a9962b757

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