X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiUnblock.php;h=1af83ba3f030013a18b32532474251358d1a7432;hb=f26e34fa2866584f7a86f559578aab7b2bb35f7a;hp=2854a8252923b505ea29096ab9e611f6af6ecc65;hpb=d98fd55e11dc6ab9f04d4810985b04ca39dfc3dd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiUnblock.php b/includes/api/ApiUnblock.php index 2854a82529..1af83ba3f0 100644 --- a/includes/api/ApiUnblock.php +++ b/includes/api/ApiUnblock.php @@ -93,30 +93,16 @@ class ApiUnblock extends ApiBase { ); } - public function getParamDescription() { - $p = $this->getModulePrefix(); - - return array( - 'id' => "ID of the block you want to unblock (obtained through list=blocks). " . - "Cannot be used together with {$p}user", - 'user' => "Username, IP address or IP range you want to unblock. " . - "Cannot be used together with {$p}id", - 'reason' => 'Reason for unblock', - ); - } - - public function getDescription() { - return 'Unblock a user.'; - } - public function needsToken() { return 'csrf'; } - public function getExamples() { + protected function getExamplesMessages() { return array( - 'api.php?action=unblock&id=105', - 'api.php?action=unblock&user=Bob&reason=Sorry%20Bob' + 'action=unblock&id=105' + => 'apihelp-unblock-example-id', + 'action=unblock&user=Bob&reason=Sorry%20Bob' + => 'apihelp-unblock-example-user', ); }