From 6e61566e3ec0fb9d2f8dc8241f2038563d77e728 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sun, 2 Dec 2007 14:44:35 +0000 Subject: [PATCH] Changing error code to prevent confusion with wfReadOnly() == true --- includes/api/ApiMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 1243e3fb5f..f0c8f55967 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -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'); } /** -- 2.20.1