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
/
ApiFileRevert.php
diff --git
a/includes/api/ApiFileRevert.php
b/includes/api/ApiFileRevert.php
index
7cac0eb
..
08a9c8e
100644
(file)
--- a/
includes/api/ApiFileRevert.php
+++ b/
includes/api/ApiFileRevert.php
@@
-126,7
+126,10
@@
class ApiFileRevert extends ApiBase {
ApiBase::PARAM_TYPE => 'string',
ApiBase::PARAM_REQUIRED => true,
),
- 'token' => null,
+ 'token' => array(
+ ApiBase::PARAM_TYPE => 'string',
+ ApiBase::PARAM_REQUIRED => true
+ ),
);
}