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
(bug 38190) Add "required" flag to some token params
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiPatrol.php
diff --git
a/includes/api/ApiPatrol.php
b/includes/api/ApiPatrol.php
index
45d19d0
..
cb5e081
100644
(file)
--- a/
includes/api/ApiPatrol.php
+++ b/
includes/api/ApiPatrol.php
@@
-65,7
+65,10
@@
class ApiPatrol extends ApiBase {
public function getAllowedParams() {
return array(
- 'token' => null,
+ 'token' => array(
+ ApiBase::PARAM_TYPE => 'string',
+ ApiBase::PARAM_REQUIRED => true
+ ),
'rcid' => array(
ApiBase::PARAM_TYPE => 'integer',
ApiBase::PARAM_REQUIRED => true