r79790 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79789‎ | r79790 | r79791 >
Date:02:29, 7 January 2011
Author:reedy
Status:ok
Tags:
Comment:
Remove one invalid errors, add 2 that could be returned
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryCategoryMembers.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryCategoryMembers.php
@@ -310,7 +310,8 @@
311311
312312 public function getPossibleErrors() {
313313 return array_merge( parent::getPossibleErrors(), array(
314 - array( 'code' => 'notitle', 'info' => 'The cmtitle parameter is required' ),
 314+ array( 'code' => 'cmmissingparam', 'info' => 'One of the parameters title, pageid is required' ),
 315+ array( 'code' => 'cminvalidparammix', 'info' => 'The parameters title, pageid can not be used together' ),
315316 array( 'code' => 'invalidcategory', 'info' => 'The category name you entered is not valid' ),
316317 array( 'code' => 'badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ),
317318 array( 'nosuchpageid', 'pageid' ),

Follow-up revisions

RevisionCommit summaryAuthorDate
r81671Back out the changes which depend on the categorylinks schema change, so that...tstarling00:57, 8 February 2011

Status & tagging log