Merge "mw.Feedback: If the message is posted remotely, link the title correctly"
[lhc/web/wiklou.git] / includes / api / ApiQueryDisabled.php
index e1c97e1..8610007 100644 (file)
@@ -1,9 +1,5 @@
 <?php
 /**
- *
- *
- * Created on Sep 25, 2008
- *
  * Copyright © 2008 Roan Kattouw "<Firstname>.<Lastname>@gmail.com"
  *
  * This program is free software; you can redistribute it and/or modify
@@ -37,7 +33,7 @@
 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() {
@@ -45,6 +41,14 @@ class ApiQueryDisabled extends ApiQueryBase {
        }
 
        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';
        }
 }