From 341bfb5f449e28efae03809ac2df9615f33ffee6 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Tue, 10 Aug 2004 13:22:15 +0000 Subject: [PATCH] use Database::timestamp() for cutoff --- includes/SpecialWatchlist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index d3d833b1ba..cd96ae921b 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -81,7 +81,7 @@ function wfSpecialWatchlist() $npages = wfMsg( "all" ); } else { $docutoff = "AND cur_timestamp > '" . - ( $cutoff = wfUnix2Timestamp( time() - intval( $days * 86400 ) ) ) + ( $cutoff = $dbr->timestamp( time() - intval( $days * 86400 ) ) ) . "'"; $sql = "SELECT COUNT(*) AS n FROM $cur WHERE cur_timestamp>'$cutoff'"; $res = $dbr->query( $sql ); -- 2.20.1