X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFormatTxt.php;h=e739d5a4c026ac95837e4cef500ac2b820a707ed;hb=ca8cb1c90edd1bd2584fd5be0dce787cc6b62bc4;hp=c451ed7756daf3f44bd52a923964d988bb40de1b;hpb=48d433b102e636644d833e408ba028880f90f62a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFormatTxt.php b/includes/api/ApiFormatTxt.php index c451ed7756..e739d5a4c0 100644 --- a/includes/api/ApiFormatTxt.php +++ b/includes/api/ApiFormatTxt.php @@ -40,10 +40,15 @@ class ApiFormatTxt extends ApiFormatBase { public function execute() { $this->markDeprecated(); - $this->printText( print_r( $this->getResultData(), true ) ); + $data = $this->getResult()->getResultData( null, array( + 'BC' => array(), + 'Types' => array(), + 'Strip' => 'all', + ) ); + $this->printText( print_r( $data, true ) ); } - public function getDescription() { - return 'DEPRECATED! Output data in PHP\'s print_r() format' . parent::getDescription(); + public function isDeprecated() { + return true; } }