finally found the reason for the li bug, top a now in skin
[lhc/web/wiklou.git] / includes / SpecialExport.php
index fabc2cb..688679d 100644 (file)
@@ -1,12 +1,30 @@
 <?php
+# Copyright (C) 2003 Brion Vibber <brion@pobox.com>
+# http://www.mediawiki.org/
+# 
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or 
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# 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;
        }
        
@@ -97,7 +115,7 @@ function revision2xml( $s, $full, $cur ) {
                $u = "<ip>" . htmlspecialchars( $s->user_text ) . "</ip>";
        }
        $xml .= "      <contributor>$u</contributor>\n";
-       if($s->minor) {
+       if( !empty( $s->minor ) ) {
                $xml .= "      <minor/>\n";
        }
        if($s->comment != "") {