http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89517

Revision: 89517
Author:   reedy
Date:     2011-06-05 18:34:26 +0000 (Sun, 05 Jun 2011)
Log Message:
-----------
Followup r89515, fix double spacing in API Error message

Add both customcssprotected and customjsprotected to the possible errors output 
for editpage

Modified Paths:
--------------
    trunk/phase3/includes/api/ApiBase.php
    trunk/phase3/includes/api/ApiEditPage.php

Modified: trunk/phase3/includes/api/ApiBase.php
===================================================================
--- trunk/phase3/includes/api/ApiBase.php       2011-06-05 18:33:35 UTC (rev 
89516)
+++ trunk/phase3/includes/api/ApiBase.php       2011-06-05 18:34:26 UTC (rev 
89517)
@@ -970,7 +970,7 @@
                '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" ),

Modified: trunk/phase3/includes/api/ApiEditPage.php
===================================================================
--- trunk/phase3/includes/api/ApiEditPage.php   2011-06-05 18:33:35 UTC (rev 
89516)
+++ trunk/phase3/includes/api/ApiEditPage.php   2011-06-05 18:34:26 UTC (rev 
89517)
@@ -411,6 +411,8 @@
                        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' ),
                ) );
        }
 


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to