From: Roan Kattouw Date: Fri, 1 Feb 2008 13:43:01 +0000 (+0000) Subject: API: Removing duplicate functionality from userinfo; it's implemented in list=users... X-Git-Tag: 1.31.0-rc.0~49668 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=55021c485fd7d214b02c61ffbe8618a7628b1de9;p=lhc%2Fweb%2Fwiklou.git API: Removing duplicate functionality from userinfo; it's implemented in list=users already. Probably forgot to commit this when introducing list=users --- diff --git a/includes/api/ApiQueryUserInfo.php b/includes/api/ApiQueryUserInfo.php index e5f38fe064..164c441f5b 100644 --- a/includes/api/ApiQueryUserInfo.php +++ b/includes/api/ApiQueryUserInfo.php @@ -60,7 +60,8 @@ class ApiQueryUserInfo extends ApiQueryBase { $vals['id'] = $wgUser->getId(); $vals['name'] = $wgUser->getName(); - if( $wgUser->isAnon() ) $vals['anon'] = ''; + if($wgUser->isAnon()) + $vals['anon'] = ''; if (isset($this->prop['blockinfo'])) { if ($wgUser->isBlocked()) { $vals['blockedby'] = User::whoIs($wgUser->blockedBy()); @@ -100,9 +101,6 @@ class ApiQueryUserInfo extends ApiQueryBase { 'options', 'editcount' ) - ), - 'users' => array( - ApiBase :: PARAM_ISMULTI => true ) ); } @@ -111,14 +109,13 @@ class ApiQueryUserInfo extends ApiQueryBase { return array ( 'prop' => array( 'What pieces of information to include', - ' blockinfo - tags if the user is blocked, by whom, and for what reason', - ' hasmsg - adds a tag "message" if user has pending messages', - ' groups - lists all the groups the user belongs to', - ' rights - lists of all rights the user has', - ' options - lists all preferences the user has set', - ' editcount - adds the user\'s edit count' - ), - 'users' => 'A list of other users to obtain the same information for' + ' blockinfo - tags if the current user is blocked, by whom, and for what reason', + ' hasmsg - adds a tag "message" if the current user has pending messages', + ' groups - lists all the groups the current user belongs to', + ' rights - lists of all rights the current user has', + ' options - lists all preferences the current user has set', + ' editcount - adds the current user\'s edit count' + ) ); }