(bug 38190) Add "required" flag to some token params
[lhc/web/wiklou.git] / includes / api / ApiImport.php
index 15eac33..abd2777 100644 (file)
@@ -98,7 +98,10 @@ class ApiImport extends ApiBase {
        public function getAllowedParams() {
                global $wgImportSources;
                return array(
-                       'token' => null,
+                       'token' => array(
+                               ApiBase::PARAM_TYPE => 'string',
+                               ApiBase::PARAM_REQUIRED => true
+                       ),
                        'summary' => null,
                        'xml' => null,
                        'interwikisource' => array(