X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryUserInfo.php;h=251c42bc5de00cc7dc3dc447ffd2948f3ddde741;hb=59ebff658ce912c1b0e7ef8d8f9bfec5a4e17b39;hp=e003e31f8526c052002204c09610bd9345cf871c;hpb=e8e8670e7ce6837e0331c8565cd390fca04152e5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryUserInfo.php b/includes/api/ApiQueryUserInfo.php index e003e31f85..251c42bc5d 100644 --- a/includes/api/ApiQueryUserInfo.php +++ b/includes/api/ApiQueryUserInfo.php @@ -78,7 +78,6 @@ class ApiQueryUserInfo extends ApiQueryBase { protected function getCurrentUserInfo() { $user = $this->getUser(); - $result = $this->getResult(); $vals = array(); $vals['id'] = intval( $user->getId() ); $vals['name'] = $user->getName(); @@ -268,10 +267,12 @@ class ApiQueryUserInfo extends ApiQueryBase { 'registrationdate', 'unreadcount', ), - ApiBase::PARAM_HELP_MSG => array( - 'apihelp-query+userinfo-param-prop', - self::WL_UNREAD_LIMIT - 1, - self::WL_UNREAD_LIMIT . '+', + ApiBase::PARAM_HELP_MSG_PER_VALUE => array( + 'unreadcount' => array( + 'apihelp-query+userinfo-paramvalue-prop-unreadcount', + self::WL_UNREAD_LIMIT - 1, + self::WL_UNREAD_LIMIT . '+', + ), ), ) );