(bug 38190) Add "required" flag to some token params
[lhc/web/wiklou.git] / includes / api / ApiRollback.php
index dddbb85..677df16 100644 (file)
@@ -90,7 +90,10 @@ class ApiRollback extends ApiBase {
                                ApiBase::PARAM_TYPE => 'string',
                                ApiBase::PARAM_REQUIRED => true
                        ),
-                       'token' => null,
+                       'token' => array(
+                               ApiBase::PARAM_TYPE => 'string',
+                               ApiBase::PARAM_REQUIRED => true
+                       ),
                        'summary' => '',
                        'markbot' => false,
                        'watchlist' => array(