X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fapi%2FApiFormatTxt.php;h=e739d5a4c026ac95837e4cef500ac2b820a707ed;hb=35d9ad550f2f443455b3b76495d9cebfafdfaf37;hp=3de2943d46a2f60a32e600e4ccb3606252255344;hpb=27615c9ca1dbbc1b087eccd8b8b6ba7ffe52e5c3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFormatTxt.php b/includes/api/ApiFormatTxt.php index 3de2943d46..e739d5a4c0 100644 --- a/includes/api/ApiFormatTxt.php +++ b/includes/api/ApiFormatTxt.php @@ -26,6 +26,7 @@ /** * API Text output formatter + * @deprecated since 1.24 * @ingroup API */ class ApiFormatTxt extends ApiFormatBase { @@ -39,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; } }