dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move up devunt's name to Developers
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiFormatTxt.php
diff --git
a/includes/api/ApiFormatTxt.php
b/includes/api/ApiFormatTxt.php
index
3de2943
..
e739d5a
100644
(file)
--- a/
includes/api/ApiFormatTxt.php
+++ b/
includes/api/ApiFormatTxt.php
@@
-26,6
+26,7
@@
/**
* API Text output formatter
/**
* API Text output formatter
+ * @deprecated since 1.24
* @ingroup API
*/
class ApiFormatTxt extends ApiFormatBase {
* @ingroup API
*/
class ApiFormatTxt extends ApiFormatBase {
@@
-39,10
+40,15
@@
class ApiFormatTxt extends ApiFormatBase {
public function execute() {
$this->markDeprecated();
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
;
}
}
}
}