(bug 38190) Add "required" flag to some token params
[lhc/web/wiklou.git] / includes / api / ApiWatch.php
index 3801aec..0509f1f 100644 (file)
@@ -88,7 +88,10 @@ class ApiWatch extends ApiBase {
                                ApiBase::PARAM_REQUIRED => true
                        ),
                        'unwatch' => false,
-                       'token' => null,
+                       'token' => array(
+                               ApiBase::PARAM_TYPE => 'string',
+                               ApiBase::PARAM_REQUIRED => true
+                       ),
                );
        }