wfIsBadImage: Avoid deprecated wfMemcKey()
Change-Id: I92133ed6a94902bdac2e9723f19a653a9962b757
This commit is contained in:
parent
2f1f04dd4f
commit
ee8eb0fc94
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue