X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiDisabled.php;h=5575489655074e7c8c3c3748e926999ae2b6aea7;hb=abed714fee2a186484faf6778d073963b75b2f5b;hp=f4da99ab815924f49afd3e300be7677735400d80;hpb=457eb73b61d0eec867a1e8ce495cfd46ccbd1ac1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiDisabled.php b/includes/api/ApiDisabled.php index f4da99ab81..5575489655 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 @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * API module that dies with an error immediately. * @@ -46,7 +41,7 @@ class ApiDisabled extends ApiBase { } 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() { @@ -65,7 +60,7 @@ class ApiDisabled extends ApiBase { return 'This module has been disabled'; } - protected function getExamples() { + public function getExamples() { return array(); }