From 82bfacb9a05cb9ff54319387f9f3ac20abe9b812 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 5 Aug 2011 14:55:53 +0000 Subject: [PATCH] Followup r93905 per comment on bug 30230 Make text parameter of ApiExpandTemplates required --- includes/api/ApiExpandTemplates.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, ); -- 2.20.1