From 5b2ccf0dced9b780f3b537a168bc04ea30e66205 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 11 Aug 2006 16:22:51 +0000 Subject: [PATCH] * (bug 6971) Fix regression in Special:Export history view --- RELEASE-NOTES | 2 ++ includes/SpecialExport.php | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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( -- 2.20.1