Fix possible error texts in action=options
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 4 Aug 2012 14:18:18 +0000 (16:18 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Sat, 4 Aug 2012 14:18:18 +0000 (16:18 +0200)
Change-Id: I465b9cf109bd4f22542747ca72876caa3725a353

includes/api/ApiOptions.php

index d3847a0..4398eb0 100644 (file)
@@ -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' ),
                ) );
        }