From: Brion Vibber Date: Sat, 20 Mar 2004 08:56:05 +0000 (+0000) Subject: Uninitialized variable cleanup; allow x-code input for page box in export for Esperanto X-Git-Tag: 1.3.0beta1~766 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=cd0577bb81dbf3be7f38c0ad93d6f86c2d91280c;p=lhc%2Fweb%2Fwiklou.git Uninitialized variable cleanup; allow x-code input for page box in export for Esperanto --- diff --git a/includes/SpecialExport.php b/includes/SpecialExport.php index 84e215edec..688679db59 100644 --- a/includes/SpecialExport.php +++ b/includes/SpecialExport.php @@ -18,12 +18,13 @@ # http://www.gnu.org/copyleft/gpl.html function wfSpecialExport( $page = "" ) { - global $wgOut, $wgLang; + global $wgOut, $wgLang, $wgRequest; - if( $_REQUEST['action'] == 'submit') { - $page = $_REQUEST['pages']; - $curonly = isset($_REQUEST['curonly']) ? true : false; + if( $wgRequest->getVal( 'action' ) == 'submit') { + $page = $wgRequest->getText( 'pages' ); + $curonly = $wgRequest->getCheck( 'curonly' ); } else { + # Pre-check the 'current version only' box in the UI $curonly = true; } @@ -114,7 +115,7 @@ function revision2xml( $s, $full, $cur ) { $u = "" . htmlspecialchars( $s->user_text ) . ""; } $xml .= " $u\n"; - if($s->minor) { + if( !empty( $s->minor ) ) { $xml .= " \n"; } if($s->comment != "") {