Changing error code to prevent confusion with wfReadOnly() == true

This commit is contained in:
Roan Kattouw 2007-12-02 14:44:35 +00:00
parent 6e2d0cd173
commit 6e61566e3e

View 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');
}
/**