X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiDisabled.php;h=41bf9b69c7b854af59c711296543fa9e017ef2e1;hb=71084989eaf383b166ffdf3b9f9fb97782efa724;hp=6ea5d2020ccea30153d53d692f6f4ffd63849962;hpb=540329ebd55e2839555ea9f631160756fa63fa45;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiDisabled.php b/includes/api/ApiDisabled.php index 6ea5d2020c..41bf9b69c7 100644 --- a/includes/api/ApiDisabled.php +++ b/includes/api/ApiDisabled.php @@ -37,26 +37,14 @@ 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() { return false; } - public function getAllowedParams() { - return array(); - } - - public function getParamDescription() { - return array(); - } - - public function getDescription() { - return 'This module has been disabled.'; - } - - public function getExamples() { - return array(); + protected function getDescriptionMessage() { + return 'apihelp-disabled-description'; } }