SpecialVersion: Avoid deprecated wfMemcKey()
authorKunal Mehta <legoktm@member.fsf.org>
Thu, 25 May 2017 07:47:46 +0000 (00:47 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Thu, 25 May 2017 18:20:24 +0000 (11:20 -0700)
Change-Id: I7cfaf049a4e193bdb12b5233f0460e71cbe876af

includes/specials/SpecialVersion.php

index 708eced..caa0e1f 100644 (file)
@@ -732,7 +732,9 @@ class SpecialVersion extends SpecialPage {
                                }
                        }
                        $cache = wfGetCache( CACHE_ANYTHING );
-                       $memcKey = wfMemcKey( 'specialversion-ext-version-text', $extension['path'], $this->coreId );
+                       $memcKey = $cache->makeKey(
+                               'specialversion-ext-version-text', $extension['path'], $this->coreId
+                       );
                        list( $vcsVersion, $vcsLink, $vcsDate ) = $cache->get( $memcKey );
 
                        if ( !$vcsVersion ) {