Changing error code to prevent confusion with wfReadOnly() == true
authorRoan Kattouw <catrope@users.mediawiki.org>
Sun, 2 Dec 2007 14:44:35 +0000 (14:44 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sun, 2 Dec 2007 14:44:35 +0000 (14:44 +0000)
includes/api/ApiMain.php

index 1243e3f..f0c8f55 100644 (file)
@@ -160,7 +160,7 @@ class ApiMain extends ApiBase {
        public function requestWriteMode() {
                if (!$this->mEnableWrite)
                        $this->dieUsage('Editing of this site is disabled. Make sure the $wgEnableWriteAPI=true; ' .
-                       'statement is included in the site\'s LocalSettings.php file', 'readonly');
+                       'statement is included in the site\'s LocalSettings.php file', 'noapiwrite');
        }
 
        /**