From: umherirrender Date: Thu, 20 Mar 2014 18:14:02 +0000 (+0100) Subject: Fix possible error list of action=revisiondelete X-Git-Tag: 1.31.0-rc.0~16550^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/Category:Foo?a=commitdiff_plain;h=ac556078760f7534aefa0b3c9ee24c6063a85c54;p=lhc%2Fweb%2Fwiklou.git Fix possible error list of action=revisiondelete Bug: 62853 Change-Id: I0efec9e8a6cf761def7673011bcc22a9f11111a9 --- diff --git a/includes/api/ApiRevisionDelete.php b/includes/api/ApiRevisionDelete.php index 1400b0d5e2..2c76f371ee 100644 --- a/includes/api/ApiRevisionDelete.php +++ b/includes/api/ApiRevisionDelete.php @@ -223,8 +223,9 @@ class ApiRevisionDelete extends ApiBase { public function getPossibleErrors() { return array_merge( parent::getPossibleErrors(), array( - 'needtarget' => 'A target title is required for this RevDel type', - 'badparams' => 'Bad value for some parameter', + array( 'code' => 'needtarget', + 'info' => 'A target title is required for this RevDel type' ), + array( 'code' => 'badparams', 'info' => 'Bad value for some parameter' ), ) ); }