X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiDisabled.php;h=684c42547f367671bd71d7f2d1391b00b0ff2919;hb=6a47a03236c926ec9a01bf2df03ee7672c2cb6a9;hp=e5ef3b7e0eebb8c48a3e927d3f4130421cc01261;hpb=ee49f98d6bbc834f8b807499a3d219e67a4b79e3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiDisabled.php b/includes/api/ApiDisabled.php index e5ef3b7e0e..684c42547f 100644 --- a/includes/api/ApiDisabled.php +++ b/includes/api/ApiDisabled.php @@ -37,26 +37,22 @@ 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(); + protected function getDescriptionMessage() { + return 'apihelp-disabled-summary'; } - public function getParamDescription() { - return array(); + protected function getSummaryMessage() { + return 'apihelp-disabled-summary'; } - public function getDescription() { - return 'This module has been disabled'; - } - - public function getExamples() { - return array(); + protected function getExtendedDescription() { + return 'apihelp-disabled-extended-description'; } }