From 5d090359031353bf0569a30cc89e0aec6d1800a0 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 4 Aug 2012 16:18:18 +0200 Subject: [PATCH] Fix possible error texts in action=options Change-Id: I465b9cf109bd4f22542747ca72876caa3725a353 --- includes/api/ApiOptions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiOptions.php b/includes/api/ApiOptions.php index d3847a03da..4398eb069d 100644 --- a/includes/api/ApiOptions.php +++ b/includes/api/ApiOptions.php @@ -135,8 +135,8 @@ class ApiOptions extends ApiBase { public function getPossibleErrors() { return array_merge( parent::getPossibleErrors(), array( - array( 'notloggedin' ), - array( 'nochanges' ), + array( 'code' => 'notloggedin', 'info' => 'Anonymous users cannot change preferences' ), + array( 'code' => 'nochanges', 'info' => 'No changes were requested' ), ) ); } -- 2.20.1