From: Sam Reed Date: Fri, 7 Jan 2011 02:29:31 +0000 (+0000) Subject: Remove one invalid errors, add 2 that could be returned X-Git-Tag: 1.31.0-rc.0~32726 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=393f9bceb2f08a3a47a425c59c75b0d226d0c23e;p=lhc%2Fweb%2Fwiklou.git Remove one invalid errors, add 2 that could be returned --- diff --git a/includes/api/ApiQueryCategoryMembers.php b/includes/api/ApiQueryCategoryMembers.php index 2ba305766d..9e4220eff7 100644 --- a/includes/api/ApiQueryCategoryMembers.php +++ b/includes/api/ApiQueryCategoryMembers.php @@ -310,7 +310,8 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase { public function getPossibleErrors() { return array_merge( parent::getPossibleErrors(), array( - array( 'code' => 'notitle', 'info' => 'The cmtitle parameter is required' ), + array( 'code' => 'cmmissingparam', 'info' => 'One of the parameters title, pageid is required' ), + array( 'code' => 'cminvalidparammix', 'info' => 'The parameters title, pageid can not be used together' ), array( 'code' => 'invalidcategory', 'info' => 'The category name you entered is not valid' ), array( 'code' => 'badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ), array( 'nosuchpageid', 'pageid' ),