diff options
Diffstat (limited to 'includes/api/ApiFormatDbg.php')
-rw-r--r-- | includes/api/ApiFormatDbg.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/includes/api/ApiFormatDbg.php b/includes/api/ApiFormatDbg.php index 5ec518b3..7d359ad4 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; } } |