From ac556078760f7534aefa0b3c9ee24c6063a85c54 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 20 Mar 2014 19:14:02 +0100 Subject: [PATCH] Fix possible error list of action=revisiondelete Bug: 62853 Change-Id: I0efec9e8a6cf761def7673011bcc22a9f11111a9 --- includes/api/ApiRevisionDelete.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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' ), ) ); } -- 2.20.1