From 83411cd0fa9771012700909519a8b45aac590aeb Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 6 Aug 2010 11:18:39 +0000 Subject: [PATCH] Followup r70460 per Umherirrender comment Add "required" to ApiParamInfo --- includes/api/ApiParamInfo.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index 0108c8f6ed..793c2744fa 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -118,6 +118,11 @@ class ApiParamInfo extends ApiBase { if ( isset( $p[ApiBase::PARAM_DEPRECATED] ) && $p[ApiBase::PARAM_DEPRECATED] ) { $a['deprecated'] = ''; } + + if ( isset( $p[ApiBase::PARAM_REQUIRED] ) && $p[ApiBase::PARAM_REQUIRED] ) { + $a['required'] = ''; + } + if ( !is_array( $p ) ) { if ( is_bool( $p ) ) { $a['type'] = 'bool'; -- 2.20.1