From 3567e37eb3132266420d7b447354238ce7afb8df Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 6 Aug 2010 16:02:42 +0000 Subject: [PATCH 1/1] wfForeignMemcKey() just exists, we don't have to keep around crazy back compat for that --- includes/UserRightsProxy.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/includes/UserRightsProxy.php b/includes/UserRightsProxy.php index 6ecfeda185..ee7e1951ef 100644 --- a/includes/UserRightsProxy.php +++ b/includes/UserRightsProxy.php @@ -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 ); } } -- 2.20.1