From 393f9bceb2f08a3a47a425c59c75b0d226d0c23e Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 7 Jan 2011 02:29:31 +0000 Subject: [PATCH] Remove one invalid errors, add 2 that could be returned --- includes/api/ApiQueryCategoryMembers.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' ), -- 2.20.1