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
Merge "Fix variable name and use isset() to shut up a stupid notice"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiFormatDbg.php
diff --git
a/includes/api/ApiFormatDbg.php
b/includes/api/ApiFormatDbg.php
index
5ec518b
..
7d359ad
100644
(file)
--- a/
includes/api/ApiFormatDbg.php
+++ b/
includes/api/ApiFormatDbg.php
@@
-40,10
+40,15
@@
class ApiFormatDbg extends ApiFormatBase {
public function execute() {
$this->markDeprecated();
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
;
}
}
}
}