Index: trunk/phase3/includes/specials/SpecialExport.php |
— | — | @@ -61,7 +61,7 @@ |
62 | 62 | } |
63 | 63 | } |
64 | 64 | } |
65 | | - else if( $wgRequest->wasPosted() && $page == '' ) { |
| 65 | + else if( $wgRequest->wasPosted() && $par == '' ) { |
66 | 66 | $page = $wgRequest->getText( 'pages' ); |
67 | 67 | $this->curonly = $wgRequest->getCheck( 'curonly' ); |
68 | 68 | $rawOffset = $wgRequest->getVal( 'offset' ); |
— | — | @@ -125,7 +125,7 @@ |
126 | 126 | $filename = urlencode( $wgSitename . '-' . wfTimestampNow() . '.xml' ); |
127 | 127 | $wgRequest->response()->header( "Content-disposition: attachment;filename={$filename}" ); |
128 | 128 | } |
129 | | - $this->doExport( $page, $history ); |
| 129 | + $this->doExport( $page, $history, $list_authors ); |
130 | 130 | return; |
131 | 131 | } |
132 | 132 | |
— | — | @@ -159,7 +159,7 @@ |
160 | 160 | * @param string $page User input on what page(s) to export |
161 | 161 | * @param mixed $history one of the WikiExporter history export constants |
162 | 162 | */ |
163 | | - private function doExport( $page, $history ) { |
| 163 | + private function doExport( $page, $history, $list_authors ) { |
164 | 164 | global $wgExportMaxHistory; |
165 | 165 | |
166 | 166 | /* Split up the input and look up linked pages */ |
— | — | @@ -199,8 +199,8 @@ |
200 | 200 | set_time_limit(0); |
201 | 201 | wfRestoreWarnings(); |
202 | 202 | } |
203 | | - $exporter = new WikiExporter( $db, $history, $buffer ); |
204 | | - $exporter->list_authors = $list_authors ; |
| 203 | + $exporter = new WikiExporter( $db, $history, $buffer ); |
| 204 | + $exporter->list_authors = $list_authors; |
205 | 205 | $exporter->openStream(); |
206 | 206 | foreach( $pages as $page ) { |
207 | 207 | /* |