API: Per IRC conversation with Splarka, add a few words about token availability...
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 27 Oct 2008 12:06:49 +0000 (12:06 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 27 Oct 2008 12:06:49 +0000 (12:06 +0000)
includes/api/ApiBlock.php
includes/api/ApiUnblock.php

index 4070fec..dd55206 100644 (file)
@@ -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)',
index 5d58804..b262df2 100644 (file)
@@ -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)',
                );