From eb708d8b28a95d0f97f54e6c3a424536359b59f8 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 28 May 2014 20:15:13 +0200 Subject: [PATCH] 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 --- includes/api/ApiQueryLogEvents.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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() { -- 2.20.1