From 58ccb663e19f13ed32eac2d9702aba61bdd1f67d Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 5 Jun 2011 18:34:26 +0000 Subject: [PATCH] Followup r89515, fix double spacing in API Error message Add both customcssprotected and customjsprotected to the possible errors output for editpage --- includes/api/ApiBase.php | 2 +- includes/api/ApiEditPage.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index d63061518d..21f6d96c58 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -970,7 +970,7 @@ abstract class ApiBase { 'ns-specialprotected' => array( 'code' => 'unsupportednamespace', 'info' => "Pages in the Special namespace can't be edited" ), 'protectedinterface' => array( 'code' => 'protectednamespace-interface', 'info' => "You're not allowed to edit interface messages" ), 'namespaceprotected' => array( 'code' => 'protectednamespace', 'info' => "You're not allowed to edit pages in the ``\$1'' namespace" ), - 'customcssprotected' => array( 'code' => 'customcssprotected', 'info' => "You're not allowed to edit custom CSS pages" ), + 'customcssprotected' => array( 'code' => 'customcssprotected', 'info' => "You're not allowed to edit custom CSS pages" ), 'customjsprotected' => array( 'code' => 'customjsprotected', 'info' => "You're not allowed to edit custom JavaScript pages" ), 'cascadeprotected' => array( 'code' => 'cascadeprotected', 'info' => "The page you're trying to edit is protected because it's included in a cascade-protected page" ), 'protectedpagetext' => array( 'code' => 'protectedpage', 'info' => "The ``\$1'' right is required to edit this page" ), diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index cda342939e..3c09cbc699 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -411,6 +411,8 @@ class ApiEditPage extends ApiBase { array( 'unknownerror', 'retval' ), array( 'code' => 'nosuchsection', 'info' => 'There is no section section.' ), array( 'code' => 'invalidsection', 'info' => 'The section parameter must be set to an integer or \'new\'' ), + array( 'customcssprotected' ), + array( 'customjsprotected' ), ) ); } -- 2.20.1