Index: trunk/extensions/ArticleAssessmentPilot/api/ApiArticleAssessment.php |
— | — | @@ -182,10 +182,11 @@ |
183 | 183 | |
184 | 184 | foreach( $wgArticleAssessmentRatings as $rating ) { |
185 | 185 | $ret["r{$rating}"] = array( |
186 | | - ApiBase::PARAM_TYPE => 'integer', |
| 186 | + ApiBase::PARAM_TYPE => 'limit', |
187 | 187 | ApiBase::PARAM_DFLT => 0, |
188 | 188 | ApiBase::PARAM_MIN => 0, |
189 | 189 | ApiBase::PARAM_MAX => 5, |
| 190 | + ApiBase::PARAM_MAX2 => 5, |
190 | 191 | ); |
191 | 192 | } |
192 | 193 | return $ret; |