From: Chad Horohoe Date: Fri, 21 May 2010 12:57:26 +0000 (+0000) Subject: Use __METHOD__ in a few places X-Git-Tag: 1.31.0-rc.0~36773 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=7599dbc87b3d93abb4cdc3a731a3858b766d4794;p=lhc%2Fweb%2Fwiklou.git Use __METHOD__ in a few places --- diff --git a/includes/User.php b/includes/User.php index b96c4d8df2..b5867d1d62 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2160,7 +2160,7 @@ class User { 'ug_user' => $this->getID(), 'ug_group' => $group, ), - 'User::addGroup', + __METHOD__, array( 'IGNORE' ) ); } @@ -2183,8 +2183,7 @@ class User { array( 'ug_user' => $this->getID(), 'ug_group' => $group, - ), - 'User::removeGroup' ); + ), __METHOD__ ); $this->loadGroups(); $this->mGroups = array_diff( $this->mGroups, array( $group ) ); @@ -2777,7 +2776,7 @@ class User { return $res; else { $dbr = wfGetDB( DB_SLAVE ); - return $res = $dbr->selectField( 'user', 'max(user_id)', false, 'User::getMaxID' ); + return $res = $dbr->selectField( 'user', 'max(user_id)', false, __METHOD__ ); } }