Followup r93905 per comment on bug 30230
authorSam Reed <reedy@users.mediawiki.org>
Fri, 5 Aug 2011 14:55:53 +0000 (14:55 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 5 Aug 2011 14:55:53 +0000 (14:55 +0000)
Make text parameter of ApiExpandTemplates required

includes/api/ApiExpandTemplates.php

index fc9a451..3fe586f 100644 (file)
@@ -90,7 +90,10 @@ class ApiExpandTemplates extends ApiBase {
                        'title' => array(
                                ApiBase::PARAM_DFLT => 'API',
                        ),
-                       'text' => null,
+                       'text' => array(
+                               ApiBase::PARAM_TYPE => 'string',
+                               ApiBase::PARAM_REQUIRED => true,
+                       ),
                        'generatexml' => false,
                        'includecomments' => false,
                );