r70554 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70553‎ | r70554 | r70555 >
Date:11:18, 6 August 2010
Author:reedy
Status:ok
Tags:
Comment:
Followup r70460 per Umherirrender comment

Add "required" to ApiParamInfo
Modified paths:
  • /trunk/phase3/includes/api/ApiParamInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiParamInfo.php
@@ -118,6 +118,11 @@
119119 if ( isset( $p[ApiBase::PARAM_DEPRECATED] ) && $p[ApiBase::PARAM_DEPRECATED] ) {
120120 $a['deprecated'] = '';
121121 }
 122+
 123+ if ( isset( $p[ApiBase::PARAM_REQUIRED] ) && $p[ApiBase::PARAM_REQUIRED] ) {
 124+ $a['required'] = '';
 125+ }
 126+
122127 if ( !is_array( $p ) ) {
123128 if ( is_bool( $p ) ) {
124129 $a['type'] = 'bool';

Follow-up revisions

RevisionCommit summaryAuthorDate
r734691.16wmf4: Merging PARAM_REQUIRED support from trunk for upcoming ArticleAsses...catrope18:53, 21 September 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r70460* PARAM_REQUIRED parameter flag added. If this flag is set, and the end user ...soxred9313:35, 4 August 2010

Status & tagging log