X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFormatDbg.php;h=61ed18f464f10bdb274765e5c8d9b19cbfadb740;hb=fdddf94570efc33fd06f16c72d41636a45cf203a;hp=3d2a39ca56f2b8b9e9c862c0b218dd3f10fa2297;hpb=21238992a5d8e8a2dab47568f2d1b3c930347ac8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFormatDbg.php b/includes/api/ApiFormatDbg.php index 3d2a39ca56..61ed18f464 100644 --- a/includes/api/ApiFormatDbg.php +++ b/includes/api/ApiFormatDbg.php @@ -30,10 +30,6 @@ */ class ApiFormatDbg extends ApiFormatBase { - public function __construct( $main, $format ) { - parent::__construct( $main, $format ); - } - public function getMimeType() { // This looks like it should be text/plain, but IE7 is so // brain-damaged it tries to parse text/plain as HTML if it @@ -42,14 +38,11 @@ class ApiFormatDbg extends ApiFormatBase { } public function execute() { + $this->markDeprecated(); $this->printText( var_export( $this->getResultData(), true ) ); } public function getDescription() { - return 'Output data in PHP\'s var_export() format' . parent::getDescription(); - } - - public function getVersion() { - return __CLASS__ . ': $Id$'; + return 'DEPRECATED! Output data in PHP\'s var_export() format' . parent::getDescription(); } }