r66719 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66718‎ | r66719 | r66720 >
Date:12:57, 21 May 2010
Author:demon
Status:ok
Tags:
Comment:
Use __METHOD__ in a few places
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -2160,7 +2160,7 @@
21612161 'ug_user' => $this->getID(),
21622162 'ug_group' => $group,
21632163 ),
2164 - 'User::addGroup',
 2164+ __METHOD__,
21652165 array( 'IGNORE' ) );
21662166 }
21672167
@@ -2183,8 +2183,7 @@
21842184 array(
21852185 'ug_user' => $this->getID(),
21862186 'ug_group' => $group,
2187 - ),
2188 - 'User::removeGroup' );
 2187+ ), __METHOD__ );
21892188
21902189 $this->loadGroups();
21912190 $this->mGroups = array_diff( $this->mGroups, array( $group ) );
@@ -2777,7 +2776,7 @@
27782777 return $res;
27792778 else {
27802779 $dbr = wfGetDB( DB_SLAVE );
2781 - return $res = $dbr->selectField( 'user', 'max(user_id)', false, 'User::getMaxID' );
 2780+ return $res = $dbr->selectField( 'user', 'max(user_id)', false, __METHOD__ );
27822781 }
27832782 }
27842783

Status & tagging log