From: Brion Vibber Date: Fri, 11 Aug 2006 16:22:51 +0000 (+0000) Subject: * (bug 6971) Fix regression in Special:Export history view X-Git-Tag: 1.31.0-rc.0~56020 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=5b2ccf0dced9b780f3b537a168bc04ea30e66205;p=lhc%2Fweb%2Fwiklou.git * (bug 6971) Fix regression in Special:Export history view --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4c7bd1d1d6..b299b41781 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialExport.php b/includes/SpecialExport.php index 525a2a03b6..39e1d26882 100644 --- a/includes/SpecialExport.php +++ b/includes/SpecialExport.php @@ -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(