X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryUserInfo.php;h=93c0dd053ce5ffa5750258a535943c423afa2c00;hb=23c92cf78866cadc96d9c1e5275e85caab755858;hp=251c42bc5de00cc7dc3dc447ffd2948f3ddde741;hpb=b60dded47b7c4437a21baea8ee0780243340abb6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryUserInfo.php b/includes/api/ApiQueryUserInfo.php index 251c42bc5d..93c0dd053c 100644 --- a/includes/api/ApiQueryUserInfo.php +++ b/includes/api/ApiQueryUserInfo.php @@ -149,7 +149,9 @@ class ApiQueryUserInfo extends ApiQueryBase { $vals['ratelimits'] = $this->getRateLimits(); } - if ( isset( $this->prop['realname'] ) && !in_array( 'realname', $this->getConfig()->get( 'HiddenPrefs' ) ) ) { + if ( isset( $this->prop['realname'] ) && + !in_array( 'realname', $this->getConfig()->get( 'HiddenPrefs' ) ) + ) { $vals['realname'] = $user->getRealName(); } @@ -248,7 +250,6 @@ class ApiQueryUserInfo extends ApiQueryBase { public function getAllowedParams() { return array( 'prop' => array( - ApiBase::PARAM_DFLT => null, ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => array( 'blockinfo',