editupdates tsfix
authorDomas Mituzas <midom@users.mediawiki.org>
Tue, 7 Sep 2004 08:16:38 +0000 (08:16 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Tue, 7 Sep 2004 08:16:38 +0000 (08:16 +0000)
includes/Article.php

index 779b092..474676f 100644 (file)
@@ -1835,7 +1835,7 @@ class Article {
                wfSeedRandom();
                if ( 0 == mt_rand( 0, 999 ) ) {
                        $dbw =& wfGetDB( DB_MASTER );
-                       $cutoff = wfUnix2Timestamp( time() - ( 7 * 86400 ) );
+                       $cutoff = $dbw->timestamp( time() - ( 7 * 86400 ) );
                        $sql = "DELETE FROM recentchanges WHERE rc_timestamp < '{$cutoff}'";
                        $dbw->query( $sql );
                }