From: Roan Kattouw Date: Fri, 6 Aug 2010 16:02:42 +0000 (+0000) Subject: wfForeignMemcKey() just exists, we don't have to keep around crazy back compat for... X-Git-Tag: 1.31.0-rc.0~35667 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=3567e37eb3132266420d7b447354238ce7afb8df;p=lhc%2Fweb%2Fwiklou.git wfForeignMemcKey() just exists, we don't have to keep around crazy back compat for that --- 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 ); } }