Merge "Convert article delete to use OOUI"
[lhc/web/wiklou.git] / includes / api / ApiQueryDisabled.php
index a6509d4..a94af69 100644 (file)
 class ApiQueryDisabled extends ApiQueryBase {
 
        public function execute() {
-               $this->setWarning( "The \"{$this->getModuleName()}\" module has been disabled." );
+               $this->addWarning( [ 'apierror-moduledisabled', $this->getModuleName() ] );
        }
 
        public function getAllowedParams() {
-               return array();
+               return [];
        }
 
        public function getDescriptionMessage() {
-               return 'apihelp-query+disabled-description';
+               return 'apihelp-query+disabled-summary';
+       }
+
+       public function getSummaryMessage() {
+               return 'apihelp-query+disabled-summary';
+       }
+
+       public function getExtendedDescription() {
+               return 'apihelp-query+disabled-extended-description';
        }
 }