use Database::timestamp() for cutoff
authorDomas Mituzas <midom@users.mediawiki.org>
Tue, 10 Aug 2004 13:22:15 +0000 (13:22 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Tue, 10 Aug 2004 13:22:15 +0000 (13:22 +0000)
includes/SpecialWatchlist.php

index d3d833b..cd96ae9 100644 (file)
@@ -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 );