X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFormatDbg.php;h=7d359ad45aeebcee645bc3f019215ebe5d1daab7;hb=fa645c842e7fdc4b0460525244a5f50ae916810f;hp=5ec518b358eb5934207fa11caa87b4a2c2dda7ea;hpb=aca8ab65cc49fa2f942a4e6b9d07504bb2e221ce;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFormatDbg.php b/includes/api/ApiFormatDbg.php index 5ec518b358..7d359ad45a 100644 --- a/includes/api/ApiFormatDbg.php +++ b/includes/api/ApiFormatDbg.php @@ -40,10 +40,15 @@ class ApiFormatDbg extends ApiFormatBase { public function execute() { $this->markDeprecated(); - $this->printText( var_export( $this->getResultData(), true ) ); + $data = $this->getResult()->getResultData( null, array( + 'BC' => array(), + 'Types' => array(), + 'Strip' => 'all', + ) ); + $this->printText( var_export( $data, true ) ); } - public function getDescription() { - return 'DEPRECATED! Output data in PHP\'s var_export() format' . parent::getDescription(); + public function isDeprecated() { + return true; } }