Merge "Add missing possible errors to ApiQueryLogEvents.php"

This commit is contained in:
jenkins-bot 2014-06-06 00:46:43 +00:00 committed by Gerrit Code Review
commit 41820ab1a4

View file

@ -628,12 +628,18 @@ class ApiQueryLogEvents extends ApiQueryBase {
} }
public function getPossibleErrors() { public function getPossibleErrors() {
return array_merge( parent::getPossibleErrors(), array( return array_merge(
array( 'code' => 'param_user', 'info' => 'User name $user not found' ), parent::getPossibleErrors(),
array( 'code' => 'param_title', 'info' => 'Bad title value \'title\'' ), $this->getRequireMaxOneParameterErrorMessages(
array( 'code' => 'param_prefix', 'info' => 'Bad title value \'prefix\'' ), array( 'title', 'prefix', 'namespace' ) ),
array( 'code' => 'prefixsearchdisabled', 'info' => 'Prefix search disabled in Miser Mode' ), 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() { public function getExamples() {