X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiDisabled.php;h=e5ef3b7e0eebb8c48a3e927d3f4130421cc01261;hb=c58873fb4213447615761a55fd2be72fa53f8ec2;hp=3845486894b34e91f172db16fb91bfe286e1a87e;hpb=e55ed729c4bc2179fb27de1ce988d3d351acb5a0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiDisabled.php b/includes/api/ApiDisabled.php index 3845486894..e5ef3b7e0e 100644 --- a/includes/api/ApiDisabled.php +++ b/includes/api/ApiDisabled.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 @@ -18,15 +18,12 @@ * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html + * + * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * API module that dies with an error immediately. * @@ -39,12 +36,8 @@ if ( !defined( 'MEDIAWIKI' ) ) { */ class ApiDisabled extends ApiBase { - public function __construct( $main, $action ) { - parent::__construct( $main, $action ); - } - public function execute() { - $this->dieUsage( "The ``{$this->getModuleName()}'' module has been disabled.", 'moduledisabled' ); + $this->dieUsage( "The \"{$this->getModuleName()}\" module has been disabled.", 'moduledisabled' ); } public function isReadMode() { @@ -60,16 +53,10 @@ class ApiDisabled extends ApiBase { } public function getDescription() { - return array( - 'This module has been disabled' - ); + return 'This module has been disabled'; } - protected function getExamples() { + public function getExamples() { return array(); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } }