Index: trunk/phase3/includes/specials/SpecialExport.php |
— | — | @@ -186,19 +186,34 @@ |
187 | 187 | $form .= '<br />'; |
188 | 188 | |
189 | 189 | if( $wgExportAllowHistory ) { |
190 | | - $form .= Xml::checkLabel( wfMsg( 'exportcuronly' ), 'curonly', 'curonly', true ) . '<br />'; |
| 190 | + $form .= Xml::checkLabel( |
| 191 | + wfMsg( 'exportcuronly' ), |
| 192 | + 'curonly', |
| 193 | + 'curonly', |
| 194 | + $wgRequest->wasPosted() ? $wgRequest->getCheck( 'curonly' ) : true |
| 195 | + ) . '<br />'; |
191 | 196 | } else { |
192 | 197 | $wgOut->addHTML( wfMsgExt( 'exportnohistory', 'parse' ) ); |
193 | 198 | } |
194 | 199 | |
195 | | - $form .= Xml::checkLabel( wfMsg( 'export-templates' ), 'templates', 'wpExportTemplates', false ) . '<br />'; |
| 200 | + $form .= Xml::checkLabel( |
| 201 | + wfMsg( 'export-templates' ), |
| 202 | + 'templates', |
| 203 | + 'wpExportTemplates', |
| 204 | + $wgRequest->wasPosted() ? $wgRequest->getCheck( 'templates' ) : false |
| 205 | + ) . '<br />'; |
196 | 206 | |
197 | 207 | if( $wgExportMaxLinkDepth || $this->userCanOverrideExportDepth() ) { |
198 | 208 | $form .= Xml::inputLabel( wfMsg( 'export-pagelinks' ), 'pagelink-depth', 'pagelink-depth', 20, 0 ) . '<br />'; |
199 | 209 | } |
200 | 210 | // Enable this when we can do something useful exporting/importing image information. :) |
201 | 211 | //$form .= Xml::checkLabel( wfMsg( 'export-images' ), 'images', 'wpExportImages', false ) . '<br />'; |
202 | | - $form .= Xml::checkLabel( wfMsg( 'export-download' ), 'wpDownload', 'wpDownload', true ) . '<br />'; |
| 212 | + $form .= Xml::checkLabel( |
| 213 | + wfMsg( 'export-download' ), |
| 214 | + 'wpDownload', |
| 215 | + 'wpDownload', |
| 216 | + $wgRequest->wasPosted() ? $wgRequest->getCheck( 'wpDownload' ) : true |
| 217 | + ) . '<br />'; |
203 | 218 | |
204 | 219 | $form .= Xml::submitButton( wfMsg( 'export-submit' ), $wgUser->getSkin()->tooltipAndAccessKeyAttribs( 'export' ) ); |
205 | 220 | $form .= Xml::closeElement( 'form' ); |
— | — | @@ -474,4 +489,4 @@ |
475 | 490 | return $pageSet; |
476 | 491 | } |
477 | 492 | |
478 | | -} |
\ No newline at end of file |
| 493 | +} |