Remove one invalid errors, add 2 that could be returned
authorSam Reed <reedy@users.mediawiki.org>
Fri, 7 Jan 2011 02:29:31 +0000 (02:29 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 7 Jan 2011 02:29:31 +0000 (02:29 +0000)
includes/api/ApiQueryCategoryMembers.php

index 2ba3057..9e4220e 100644 (file)
@@ -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' ),