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 @@
119
119
if ( isset( $p[ApiBase::PARAM_DEPRECATED] ) && $p[ApiBase::PARAM_DEPRECATED] ) {
120
120
$a['deprecated'] = '';
121
121
}
122
+
123
+ if ( isset( $p[ApiBase::PARAM_REQUIRED] ) && $p[ApiBase::PARAM_REQUIRED] ) {
124
+ $a['required'] = '';
125
+ }
126
+
122
127
if ( !is_array( $p ) ) {
123
128
if ( is_bool( $p ) ) {
124
129
$a['type'] = 'bool';
Follow-up revisions
Revision
Commit summary
Author
Date
r73469
1.16wmf4: Merging PARAM_REQUIRED support from trunk for upcoming ArticleAsses...
catrope
18:53, 21 September 2010
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r70460
* PARAM_REQUIRED parameter flag added. If this flag is set, and the end user ...
soxred93
13:35, 4 August 2010
Status & tagging log
11:20, 6 August 2010
Catrope
(
talk
|
contribs
)
changed the
status
of r70554
[
removed:
new
added:
ok]