From: Domas Mituzas Date: Tue, 10 Aug 2004 13:07:39 +0000 (+0000) Subject: cutoff timestamps use Database::timestamp() X-Git-Tag: 1.5.0alpha1~2439 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=4bc38e9ad6e71de4c7d5cb79419208e9f0559592;p=lhc%2Fweb%2Fwiklou.git cutoff timestamps use Database::timestamp() --- 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," .