From: Roan Kattouw Date: Sun, 2 Dec 2007 14:44:35 +0000 (+0000) Subject: Changing error code to prevent confusion with wfReadOnly() == true X-Git-Tag: 1.31.0-rc.0~50612 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=6e61566e3ec0fb9d2f8dc8241f2038563d77e728;p=lhc%2Fweb%2Fwiklou.git Changing error code to prevent confusion with wfReadOnly() == true --- 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'); } /**