From: Sam Reed Date: Fri, 5 Aug 2011 14:55:53 +0000 (+0000) Subject: Followup r93905 per comment on bug 30230 X-Git-Tag: 1.31.0-rc.0~28413 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=82bfacb9a05cb9ff54319387f9f3ac20abe9b812;p=lhc%2Fweb%2Fwiklou.git Followup r93905 per comment on bug 30230 Make text parameter of ApiExpandTemplates required --- diff --git a/includes/api/ApiExpandTemplates.php b/includes/api/ApiExpandTemplates.php index fc9a4518da..3fe586fd3a 100644 --- a/includes/api/ApiExpandTemplates.php +++ b/includes/api/ApiExpandTemplates.php @@ -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, );