From: Sam Reed Date: Fri, 6 Aug 2010 11:18:39 +0000 (+0000) Subject: Followup r70460 per Umherirrender comment X-Git-Tag: 1.31.0-rc.0~35676 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=83411cd0fa9771012700909519a8b45aac590aeb;p=lhc%2Fweb%2Fwiklou.git Followup r70460 per Umherirrender comment Add "required" to ApiParamInfo --- 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';