*
* Created on August 8, 2014
*
- * Copyright © 2014 Brad Jorsch bjorsch@wikimedia.org
+ * Copyright © 2014 Wikimedia Foundation and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
];
if ( $this->lacksSameOriginSecurity() ) {
- $this->setWarning( 'Tokens may not be obtained when the same-origin policy is not applied' );
+ $this->addWarning( [ 'apiwarn-tokens-origin' ] );
return;
}
}
public function getHelpUrls() {
- return 'https://www.mediawiki.org/wiki/API:Tokens';
+ return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Tokens';
}
}