From: Brion Vibber Date: Mon, 19 May 2008 22:15:17 +0000 (+0000) Subject: Reverting r35060 -- can't reproduce the reported problem so far, but if it exists... X-Git-Tag: 1.31.0-rc.0~47533 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=09edeb70bb881c782d9ca428b365f5f58d876fca;p=lhc%2Fweb%2Fwiklou.git Reverting r35060 -- can't reproduce the reported problem so far, but if it exists this should be moved upstream so User::getGroups() and User::getRights() return consistent values themselves --- diff --git a/includes/api/ApiQueryUserInfo.php b/includes/api/ApiQueryUserInfo.php index d676003f56..7af4d50a6c 100644 --- a/includes/api/ApiQueryUserInfo.php +++ b/includes/api/ApiQueryUserInfo.php @@ -72,11 +72,11 @@ class ApiQueryUserInfo extends ApiQueryBase { $vals['messages'] = ''; } if (isset($this->prop['groups'])) { - $vals['groups'] = array_values( $wgUser->getGroups() ); + $vals['groups'] = $wgUser->getGroups(); $result->setIndexedTagName($vals['groups'], 'g'); // even if empty } if (isset($this->prop['rights'])) { - $vals['rights'] = array_values( $wgUser->getRights() ); + $vals['rights'] = $wgUser->getRights(); $result->setIndexedTagName($vals['rights'], 'r'); // even if empty } if (isset($this->prop['options'])) {