dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "Add configuration for running etsy/phan against core"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryTokens.php
diff --git
a/includes/api/ApiQueryTokens.php
b/includes/api/ApiQueryTokens.php
index
de5a377
..
5b700db
100644
(file)
--- 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;
}