r76457 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76456‎ | r76457 | r76458 >
Date:17:19, 10 November 2010
Author:reedy
Status:ok
Tags:
Comment:
Revert unintended changes from r75673
Modified paths:
  • /trunk/extensions/ArticleAssessmentPilot/api/ApiArticleAssessment.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleAssessmentPilot/api/ApiArticleAssessment.php
@@ -7,6 +7,7 @@
88 public function execute() {
99 global $wgUser, $wgArticleAssessmentRatings;
1010 $params = $this->extractRequestParams();
 11+
1112 $token = array();
1213 if ( $wgUser->isAnon() ) {
1314 if ( !isset( $params['anontoken'] ) ) {
@@ -181,11 +182,11 @@
182183
183184 foreach( $wgArticleAssessmentRatings as $rating ) {
184185 $ret["r{$rating}"] = array(
185 - ApiBase::PARAM_TYPE => 'integer',
 186+ ApiBase::PARAM_TYPE => 'limit',
186187 ApiBase::PARAM_DFLT => 0,
187188 ApiBase::PARAM_MIN => 0,
188189 ApiBase::PARAM_MAX => 5,
189 - ApiBase::PARAM_RANGE_ENFORCE => false,
 190+ ApiBase::PARAM_MAX2 => 5,
190191 );
191192 }
192193 return $ret;
@@ -211,7 +212,7 @@
212213 }
213214
214215 public function mustBePosted() {
215 - return false;
 216+ return true;
216217 }
217218
218219 public function isWriteMode() {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r75673Stylize DonationInterface, some manual spacingreedy21:00, 29 October 2010

Status & tagging log