(bug 38190) Add "required" flag to some token params
[lhc/web/wiklou.git] / includes / api / ApiFileRevert.php
index 7cac0eb..08a9c8e 100644 (file)
@@ -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
+                       ),
                );
 
        }