X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/includes/api/ApiQueryDisabled.php diff --git a/includes/api/ApiQueryDisabled.php b/includes/api/ApiQueryDisabled.php index 479acee1..a94af695 100644 --- a/includes/api/ApiQueryDisabled.php +++ b/includes/api/ApiQueryDisabled.php @@ -1,10 +1,10 @@ .@home.nl + * Copyright © 2008 Roan Kattouw ".@gmail.com" * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * API module that does nothing * @@ -41,33 +36,23 @@ if ( !defined( 'MEDIAWIKI' ) ) { */ class ApiQueryDisabled extends ApiQueryBase { - public function __construct( $main, $action ) { - parent::__construct( $main, $action ); - } - public function execute() { - $this->setWarning( "The ``{$this->getModuleName()}'' module has been disabled." ); + $this->addWarning( [ 'apierror-moduledisabled', $this->getModuleName() ] ); } public function getAllowedParams() { - return array(); - } - - public function getParamDescription() { - return array(); + return []; } - public function getDescription() { - return array( - 'This module has been disabled.' - ); + public function getDescriptionMessage() { + return 'apihelp-query+disabled-summary'; } - protected function getExamples() { - return array(); + public function getSummaryMessage() { + return 'apihelp-query+disabled-summary'; } - public function getVersion() { - return __CLASS__ . ': $Id$'; + public function getExtendedDescription() { + return 'apihelp-query+disabled-extended-description'; } }