* (bug 6971) Fix regression in Special:Export history view
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 11 Aug 2006 16:22:51 +0000 (16:22 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 11 Aug 2006 16:22:51 +0000 (16:22 +0000)
RELEASE-NOTES
includes/SpecialExport.php

index 4c7bd1d..b299b41 100644 (file)
@@ -121,6 +121,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Removed the deprecated functions User::isSysop, User::isBureaucrat and User::isDeveloper -
   use User::isAllowed instead.
 * (bug 769) OutputPage::permissionRequired() should suggest groups with the needed permission
+* (bug 6971) Fix regression in Special:Export history view
+
 
 == Languages updated ==
 
index 525a2a0..39e1d26 100644 (file)
@@ -42,7 +42,12 @@ function wfSpecialExport( $page = '' ) {
        if( $wgRequest->getVal( 'action' ) == 'submit') {
                $page = $wgRequest->getText( 'pages' );
                $curonly = $wgRequest->getCheck( 'curonly' );
-               $offset = wfTimestamp( TS_MW, $wgRequest->getVal( 'offset' ) );
+               $rawOffset = $wgRequest->getVal( 'offset' );
+               if( $rawOffset ) {
+                       $offset = wfTimestamp( TS_MW, $rawOffset );
+               } else {
+                       $offset = null;
+               }
                $limit = $wgRequest->getInt( 'limit' );
                $dir = $wgRequest->getVal( 'dir' );
                $history = array(