Changing error code to prevent confusion with wfReadOnly() == true
This commit is contained in:
parent
6e2d0cd173
commit
6e61566e3e
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue