From: Domas Mituzas Date: Mon, 6 Sep 2004 09:34:44 +0000 (+0000) Subject: timestamp fix X-Git-Tag: 1.5.0alpha1~2086 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=53f170658833cf59302c3f29a476c12c70a36686;p=lhc%2Fweb%2Fwiklou.git timestamp fix --- diff --git a/includes/Title.php b/includes/Title.php index c26b2b963a..6670bcee43 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -311,10 +311,10 @@ class Title { if ( count( $titles ) == 0 ) { return; } + $dbw =& wfGetDB( DB_MASTER ); if ( $timestamp == '' ) { - $timestamp = wfTimestampNow(); + $timestamp = $dbw->timestamp(); } - $dbw =& wfGetDB( DB_MASTER ); $cur = $dbw->tableName( 'cur' ); $sql = "UPDATE $cur SET cur_touched='{$timestamp}' WHERE cur_id IN ("; $first = true;