From ee8eb0fc942da07116d4098e994b9b08c2abe4f9 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Thu, 25 May 2017 12:26:19 -0700 Subject: [PATCH] wfIsBadImage: Avoid deprecated wfMemcKey() Change-Id: I92133ed6a94902bdac2e9723f19a653a9962b757 --- includes/GlobalFunctions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 1859c02e43..e1d0520f62 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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 -- 2.20.1