Index: trunk/phase3/includes/api/ApiFormatDbg.php |
— | — | @@ -38,11 +38,11 @@ |
39 | 39 | }
|
40 | 40 |
|
41 | 41 | public function getMimeType() {
|
42 | | - return 'text/html';
|
| 42 | + return 'text/text';
|
43 | 43 | }
|
44 | 44 |
|
45 | 45 | public function execute() {
|
46 | | - $this->printText($this->formatHTML(var_export($this->getResultData(), true)));
|
| 46 | + $this->printText(var_export($this->getResultData(), true));
|
47 | 47 | }
|
48 | 48 |
|
49 | 49 | protected function getDescription() {
|
Index: trunk/phase3/includes/api/ApiMain.php |
— | — | @@ -91,7 +91,9 @@ |
92 | 92 | 'yamlfm' => 'ApiFormatYaml', |
93 | 93 | 'rawfm' => 'ApiFormatJson', |
94 | 94 | 'txt' => 'ApiFormatTxt', |
95 | | - 'dbg' => 'ApiFormatDbg' |
| 95 | + 'txtfm' => 'ApiFormatTxt', |
| 96 | + 'dbg' => 'ApiFormatDbg', |
| 97 | + 'dbgfm' => 'ApiFormatDbg' |
96 | 98 | ); |
97 | 99 | |
98 | 100 | private $mPrinter, $mModules, $mModuleNames, $mFormats, $mFormatNames; |
Index: trunk/phase3/includes/api/ApiFormatTxt.php |
— | — | @@ -38,11 +38,11 @@ |
39 | 39 | }
|
40 | 40 |
|
41 | 41 | public function getMimeType() {
|
42 | | - return 'text/html';
|
| 42 | + return 'text/text';
|
43 | 43 | }
|
44 | 44 |
|
45 | 45 | public function execute() {
|
46 | | - $this->printText($this->formatHTML(print_r($this->getResultData(), true)));
|
| 46 | + $this->printText(print_r($this->getResultData(), true));
|
47 | 47 | }
|
48 | 48 |
|
49 | 49 | protected function getDescription() {
|