From 40152f0aea71574ff11f7a8732d1d54271162017 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 27 Oct 2008 12:06:49 +0000 Subject: [PATCH] API: Per IRC conversation with Splarka, add a few words about token availability from prop=info in the help text for action=block and action=unblock --- includes/api/ApiBlock.php | 2 +- includes/api/ApiUnblock.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiBlock.php b/includes/api/ApiBlock.php index 4070fec4d9..dd55206576 100644 --- a/includes/api/ApiBlock.php +++ b/includes/api/ApiBlock.php @@ -133,7 +133,7 @@ class ApiBlock extends ApiBase { public function getParamDescription() { return array ( 'user' => 'Username, IP address or IP range you want to block', - 'token' => 'A block token previously obtained through the gettoken parameter', + 'token' => 'A block token previously obtained through the gettoken parameter or prop=info', 'gettoken' => 'If set, a block token will be returned, and no other action will be taken', 'expiry' => 'Relative expiry time, e.g. \'5 months\' or \'2 weeks\'. If set to \'infinite\', \'indefinite\' or \'never\', the block will never expire.', 'reason' => 'Reason for block (optional)', diff --git a/includes/api/ApiUnblock.php b/includes/api/ApiUnblock.php index 5d58804fd6..b262df2c55 100644 --- a/includes/api/ApiUnblock.php +++ b/includes/api/ApiUnblock.php @@ -94,7 +94,7 @@ class ApiUnblock extends ApiBase { return array ( 'id' => 'ID of the block you want to unblock (obtained through list=blocks). Cannot be used together with user', 'user' => 'Username, IP address or IP range you want to unblock. Cannot be used together with id', - 'token' => 'An unblock token previously obtained through the gettoken parameter', + 'token' => 'An unblock token previously obtained through the gettoken parameter or prop=info', 'gettoken' => 'If set, an unblock token will be returned, and no other action will be taken', 'reason' => 'Reason for unblock (optional)', ); -- 2.20.1