From: umherirrender Date: Wed, 28 May 2014 18:15:13 +0000 (+0200) Subject: Add missing possible errors to ApiQueryLogEvents.php X-Git-Tag: 1.31.0-rc.0~15455^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=eb708d8b28a95d0f97f54e6c3a424536359b59f8;p=lhc%2Fweb%2Fwiklou.git Add missing possible errors to ApiQueryLogEvents.php requireMaxOneParameter was added in I53c4c6411e0b9e6383969afced0e4c193f1b64a1, without update of the possible error list from that function call Change-Id: I17f0ba8da4b21b2a5527bd4eff0d0e3308e24d9f --- diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index 2d9d71026f..d74526bab4 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -628,12 +628,18 @@ class ApiQueryLogEvents extends ApiQueryBase { } public function getPossibleErrors() { - return array_merge( parent::getPossibleErrors(), array( - array( 'code' => 'param_user', 'info' => 'User name $user not found' ), - array( 'code' => 'param_title', 'info' => 'Bad title value \'title\'' ), - array( 'code' => 'param_prefix', 'info' => 'Bad title value \'prefix\'' ), - array( 'code' => 'prefixsearchdisabled', 'info' => 'Prefix search disabled in Miser Mode' ), - ) ); + return array_merge( + parent::getPossibleErrors(), + $this->getRequireMaxOneParameterErrorMessages( + array( 'title', 'prefix', 'namespace' ) ), + array( + array( 'code' => 'param_user', 'info' => 'User name $user not found' ), + array( 'code' => 'param_title', 'info' => 'Bad title value \'title\'' ), + array( 'code' => 'param_prefix', 'info' => 'Bad title value \'prefix\'' ), + array( 'code' => 'prefixsearchdisabled', + 'info' => 'Prefix search disabled in Miser Mode' ), + ) + ); } public function getExamples() {