X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryTokens.php;h=f88766461b3d5c9a067107aa643e323021d07645;hb=4e6b945b95d485a1c589cfaa58241e2a8eab2e95;hp=f8eee8dfcd661a8f71bc99f9b3a22ea82927b4ad;hpb=7308c4d8de265fb0e176516e37e386a6c4f99c06;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryTokens.php b/includes/api/ApiQueryTokens.php index f8eee8dfcd..f88766461b 100644 --- a/includes/api/ApiQueryTokens.php +++ b/includes/api/ApiQueryTokens.php @@ -35,7 +35,9 @@ class ApiQueryTokens extends ApiQueryBase { public function execute() { $params = $this->extractRequestParams(); - $res = array(); + $res = array( + ApiResult::META_TYPE => 'assoc', + ); if ( $this->lacksSameOriginSecurity() ) { $this->setWarning( 'Tokens may not be obtained when the same-origin policy is not applied' ); @@ -91,4 +93,8 @@ class ApiQueryTokens extends ApiQueryBase { public function getCacheMode( $params ) { return 'private'; } + + public function getHelpUrls() { + return 'https://www.mediawiki.org/wiki/API:Tokens'; + } }