Index: trunk/extensions/ArticleFeedback/api/ApiArticleFeedback.php |
— | — | @@ -330,12 +330,12 @@ |
331 | 331 | |
332 | 332 | foreach( $wgArticleFeedbackRatings as $rating ) { |
333 | 333 | $ret["r{$rating}"] = array( |
334 | | - ApiBase::PARAM_TYPE => 'limit', |
| 334 | + ApiBase::PARAM_TYPE => 'integer', |
335 | 335 | ApiBase::PARAM_REQUIRED => true, |
336 | | - ApiBase::PARAM_DFLT => 0, |
| 336 | + ApiBase::PARAM_ISMULTI => false, |
| 337 | + ApiBase::PARAM_RANGE_ENFORCE => true, |
337 | 338 | ApiBase::PARAM_MIN => 0, |
338 | 339 | ApiBase::PARAM_MAX => 5, |
339 | | - ApiBase::PARAM_MAX2 => 5, |
340 | 340 | ); |
341 | 341 | } |
342 | 342 | return $ret; |