wfForeignMemcKey() just exists, we don't have to keep around crazy back compat for...
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 6 Aug 2010 16:02:42 +0000 (16:02 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 6 Aug 2010 16:02:42 +0000 (16:02 +0000)
includes/UserRightsProxy.php

index 6ecfeda..ee7e195 100644 (file)
@@ -193,11 +193,7 @@ class UserRightsProxy {
                        __METHOD__ );
 
                global $wgMemc;
-               if ( function_exists( 'wfForeignMemcKey' ) ) {
-                       $key = wfForeignMemcKey( $this->database, false, 'user', 'id', $this->id );
-               } else {
-                       $key = "$this->database:user:id:" . $this->id;
-               }
+               $key = wfForeignMemcKey( $this->database, false, 'user', 'id', $this->id );
                $wgMemc->delete( $key );
        }
 }