From: Jeroen De Dauw Date: Sat, 5 Mar 2011 19:22:43 +0000 (+0000) Subject: keep checkbox state when adding cat/ns pages X-Git-Tag: 1.31.0-rc.0~31620 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=26c161d8b8e0e47e145fa350c24aa14fc8a9417e;p=lhc%2Fweb%2Fwiklou.git keep checkbox state when adding cat/ns pages --- diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index fd20d8b176..c64e671986 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -186,19 +186,34 @@ class SpecialExport extends SpecialPage { $form .= '
'; if( $wgExportAllowHistory ) { - $form .= Xml::checkLabel( wfMsg( 'exportcuronly' ), 'curonly', 'curonly', true ) . '
'; + $form .= Xml::checkLabel( + wfMsg( 'exportcuronly' ), + 'curonly', + 'curonly', + $wgRequest->wasPosted() ? $wgRequest->getCheck( 'curonly' ) : true + ) . '
'; } else { $wgOut->addHTML( wfMsgExt( 'exportnohistory', 'parse' ) ); } - $form .= Xml::checkLabel( wfMsg( 'export-templates' ), 'templates', 'wpExportTemplates', false ) . '
'; + $form .= Xml::checkLabel( + wfMsg( 'export-templates' ), + 'templates', + 'wpExportTemplates', + $wgRequest->wasPosted() ? $wgRequest->getCheck( 'templates' ) : false + ) . '
'; if( $wgExportMaxLinkDepth || $this->userCanOverrideExportDepth() ) { $form .= Xml::inputLabel( wfMsg( 'export-pagelinks' ), 'pagelink-depth', 'pagelink-depth', 20, 0 ) . '
'; } // Enable this when we can do something useful exporting/importing image information. :) //$form .= Xml::checkLabel( wfMsg( 'export-images' ), 'images', 'wpExportImages', false ) . '
'; - $form .= Xml::checkLabel( wfMsg( 'export-download' ), 'wpDownload', 'wpDownload', true ) . '
'; + $form .= Xml::checkLabel( + wfMsg( 'export-download' ), + 'wpDownload', + 'wpDownload', + $wgRequest->wasPosted() ? $wgRequest->getCheck( 'wpDownload' ) : true + ) . '
'; $form .= Xml::submitButton( wfMsg( 'export-submit' ), $wgUser->getSkin()->tooltipAndAccessKeyAttribs( 'export' ) ); $form .= Xml::closeElement( 'form' ); @@ -474,4 +489,4 @@ class SpecialExport extends SpecialPage { return $pageSet; } -} \ No newline at end of file +}