wfIsBadImage: Avoid deprecated wfMemcKey()

Change-Id: I92133ed6a94902bdac2e9723f19a653a9962b757
This commit is contained in:
Kunal Mehta 2017-05-25 12:26:19 -07:00
parent 2f1f04dd4f
commit ee8eb0fc94

View 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