From 53f170658833cf59302c3f29a476c12c70a36686 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Mon, 6 Sep 2004 09:34:44 +0000 Subject: [PATCH] timestamp fix --- includes/Title.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1