From: umherirrender Date: Sat, 4 Aug 2012 14:18:18 +0000 (+0200) Subject: Fix possible error texts in action=options X-Git-Tag: 1.31.0-rc.0~22845^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=5d090359031353bf0569a30cc89e0aec6d1800a0;p=lhc%2Fweb%2Fwiklou.git Fix possible error texts in action=options Change-Id: I465b9cf109bd4f22542747ca72876caa3725a353 --- 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' ), ) ); }