Index: trunk/phase3/includes/api/ApiQuery.php |
— | — | @@ -173,7 +173,8 @@ |
174 | 174 | |
175 | 175 | public function getCustomPrinter() { |
176 | 176 | // If &exportnowrap is set, use the raw formatter |
177 | | - if ($this->getParameter('exportnowrap')) |
| 177 | + if ($this->getParameter('export') && |
| 178 | + $this->getParameter('exportnowrap')) |
178 | 179 | return new ApiFormatRaw($this->getMain()); |
179 | 180 | else |
180 | 181 | return null; |
— | — | @@ -556,7 +557,7 @@ |
557 | 558 | 'redirects' => 'Automatically resolve redirects', |
558 | 559 | 'indexpageids' => 'Include an additional pageids section listing all returned page IDs.', |
559 | 560 | 'export' => 'Export the current revisions of all given or generated pages', |
560 | | - 'exportnowrap' => 'Return the export XML without wrapping it in an XML result', |
| 561 | + 'exportnowrap' => 'Return the export XML without wrapping it in an XML result. Can only be used with export', |
561 | 562 | ); |
562 | 563 | } |
563 | 564 | |