From 4bc38e9ad6e71de4c7d5cb79419208e9f0559592 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Tue, 10 Aug 2004 13:07:39 +0000 Subject: [PATCH] cutoff timestamps use Database::timestamp() --- includes/SpecialRecentchangeslinked.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/SpecialRecentchangeslinked.php b/includes/SpecialRecentchangeslinked.php index 53bb972166..b91ff80986 100644 --- a/includes/SpecialRecentchangeslinked.php +++ b/includes/SpecialRecentchangeslinked.php @@ -35,7 +35,9 @@ function wfSpecialRecentchangeslinked( $par = NULL ) } $days = (int)$days; list( $limit, $offset ) = wfCheckLimits( 100, "rclimit" ); - $cutoff = wfUnix2Timestamp( time() - ( $days * 86400 ) ); + + $dbr =& wfGetDB( DB_SLAVE ); + $cutoff = $dbr->timestamp( time() - ( $days * 86400 ) ); $hideminor = ($hideminor ? 1 : 0); if ( $hideminor ) { @@ -51,7 +53,6 @@ function wfSpecialRecentchangeslinked( $par = NULL ) $cmq = "AND cur_minor_edit=0"; } else { $cmq = ""; } - $dbr =& wfGetDB( DB_SLAVE ); extract( $dbr->tableNames( 'cur', 'links' ) ); $sql = "SELECT cur_id,cur_namespace,cur_title,cur_user,cur_comment," . -- 2.20.1