From: Domas Mituzas Date: Tue, 10 Aug 2004 11:36:22 +0000 (+0000) Subject: Fix recent changes cutoff to use Database::timestamp X-Git-Tag: 1.5.0alpha1~2440 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=27e8894502c3f84fb3f3493f5100e610a51c551c;p=lhc%2Fweb%2Fwiklou.git Fix recent changes cutoff to use Database::timestamp --- diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index 414f6184b4..913c001af9 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -61,9 +61,9 @@ function wfSpecialRecentchanges( $par ) $now = wfTimestampNow(); $cutoff_unixtime = time() - ( $days * 86400 ); $cutoff_unixtime = $cutoff_unixtime - ($cutoff_unixtime % 86400); - $cutoff = wfUnix2Timestamp( $cutoff_unixtime ); - if(preg_match('/^[0-9]{14}$/', $from) and $from > $cutoff) { - $cutoff = $from; + $cutoff = $dbr->timestamp( $cutoff_unixtime ); + if(preg_match('/^[0-9]{14}$/', $from) and $from > wfTimestamp(TS_MW,$cutoff)) { + $cutoff = $dbr->timestamp($from); } else { unset($from); }