From: Domas Mituzas Date: Tue, 7 Sep 2004 08:16:38 +0000 (+0000) Subject: editupdates tsfix X-Git-Tag: 1.5.0alpha1~2065 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=f8b32ec8db8ad88fdd764b52564f1bac2be7dd0b;p=lhc%2Fweb%2Fwiklou.git editupdates tsfix --- diff --git a/includes/Article.php b/includes/Article.php index 779b092a02..474676f74c 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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 ); }