X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiPatrol.php;h=3684461c1e7ece7b532193d3a64566f259835086;hb=239b0c772a3cf4dc2160e2c36c2813cd705adb50;hp=9690952968b9d34091beb685d5f36be52dbb2f44;hpb=0525f22b8825c617fffa98f191ab07e8113da085;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiPatrol.php b/includes/api/ApiPatrol.php index 9690952968..3684461c1e 100644 --- a/includes/api/ApiPatrol.php +++ b/includes/api/ApiPatrol.php @@ -77,10 +77,6 @@ class ApiPatrol extends ApiBase { public function getAllowedParams() { return array( - 'token' => array( - ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_REQUIRED => true - ), 'rcid' => array( ApiBase::PARAM_TYPE => 'integer' ), @@ -90,30 +86,16 @@ class ApiPatrol extends ApiBase { ); } - public function getParamDescription() { - return array( - 'token' => 'Patrol token obtained from list=recentchanges', - 'rcid' => 'Recentchanges ID to patrol', - 'revid' => 'Revision ID to patrol', - ); - } - - public function getDescription() { - return 'Patrol a page or revision.'; - } - public function needsToken() { - return true; - } - - public function getTokenSalt() { return 'patrol'; } - public function getExamples() { + protected function getExamplesMessages() { return array( - 'api.php?action=patrol&token=123abc&rcid=230672766', - 'api.php?action=patrol&token=123abc&revid=230672766' + 'action=patrol&token=123ABC&rcid=230672766' + => 'apihelp-patrol-example-rcid', + 'action=patrol&token=123ABC&revid=230672766' + => 'apihelp-patrol-example-revid', ); }