X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiDisabled.php;h=41bf9b69c7b854af59c711296543fa9e017ef2e1;hb=f594836fef2db4159c92c6c578ac6a812eb93269;hp=fc9752205ee1bde3494e2c5b5664bc5fe36a60f2;hpb=08aaea93e300d3b34befdbd30368c1293973760e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiDisabled.php b/includes/api/ApiDisabled.php index fc9752205e..41bf9b69c7 100644 --- a/includes/api/ApiDisabled.php +++ b/includes/api/ApiDisabled.php @@ -37,7 +37,7 @@ class ApiDisabled extends ApiBase { public function execute() { - $this->dieUsage( "The \"{$this->getModuleName()}\" module has been disabled.", 'moduledisabled' ); + $this->dieWithError( [ 'apierror-moduledisabled', $this->getModuleName() ] ); } public function isReadMode() {