X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=inline;f=includes%2Fapi%2FApiFormatDump.php;h=f34e1ae4d754b39d25447850753bee842d496dca;hb=64717f414cdd66a27630b92539cde5456d622141;hp=7d3224604a9d1499b64b75ddd34483cba5177323;hpb=c8aa42bbfb93e5c19a49664ccee200b304330f69;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFormatDump.php b/includes/api/ApiFormatDump.php index 7d3224604a..f34e1ae4d7 100644 --- a/includes/api/ApiFormatDump.php +++ b/includes/api/ApiFormatDump.php @@ -26,6 +26,7 @@ /** * API PHP's var_dump() output formatter + * @deprecated since 1.24 * @ingroup API */ class ApiFormatDump extends ApiFormatBase { @@ -39,14 +40,19 @@ class ApiFormatDump extends ApiFormatBase { public function execute() { $this->markDeprecated(); + $data = $this->getResult()->getResultData( null, array( + 'BC' => array(), + 'Types' => array(), + 'Strip' => 'all', + ) ); ob_start(); - var_dump( $this->getResultData() ); + var_dump( $data ); $result = ob_get_contents(); ob_end_clean(); $this->printText( $result ); } - public function getDescription() { - return 'DEPRECATED! Output data in PHP\'s var_dump() format' . parent::getDescription(); + public function isDeprecated() { + return true; } }