X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryTokens.php;h=85205c8a416349347329384b08b5f178d83acce5;hb=8ee9fcaa17dff0232c01d9080fb02b866e2728cc;hp=de5a377417d3916544155a005bde9579b7f50563;hpb=a5be382adfdad4678eec18413c6a118cb3284daf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryTokens.php b/includes/api/ApiQueryTokens.php index de5a377417..85205c8a41 100644 --- a/includes/api/ApiQueryTokens.php +++ b/includes/api/ApiQueryTokens.php @@ -40,7 +40,7 @@ class ApiQueryTokens extends ApiQueryBase { ]; if ( $this->lacksSameOriginSecurity() ) { - $this->setWarning( 'Tokens may not be obtained when the same-origin policy is not applied' ); + $this->addWarning( [ 'apiwarn-tokens-origin' ] ); return; } @@ -131,6 +131,6 @@ class ApiQueryTokens extends ApiQueryBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Tokens'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Tokens'; } }