From: Domas Mituzas Date: Tue, 10 Aug 2004 13:22:15 +0000 (+0000) Subject: use Database::timestamp() for cutoff X-Git-Tag: 1.5.0alpha1~2437 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27votes%27%2C%20votes=%27waiting%27%29%20%7D%7D?a=commitdiff_plain;h=341bfb5f449e28efae03809ac2df9615f33ffee6;p=lhc%2Fweb%2Fwiklou.git use Database::timestamp() for cutoff --- 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 );