Switch some HTMLForms in special pages to OOUI
[lhc/web/wiklou.git] / includes / api / ApiFormatTxt.php
index 6c75a56..e739d5a 100644 (file)
@@ -40,11 +40,12 @@ class ApiFormatTxt extends ApiFormatBase {
 
        public function execute() {
                $this->markDeprecated();
-               $this->printText( print_r( $this->getResultData(), true ) );
-       }
-
-       public function getDescription() {
-               return 'Output data in PHP\'s print_r() format' . parent::getDescription();
+               $data = $this->getResult()->getResultData( null, array(
+                       'BC' => array(),
+                       'Types' => array(),
+                       'Strip' => 'all',
+               ) );
+               $this->printText( print_r( $data, true ) );
        }
 
        public function isDeprecated() {