timestamp fix
authorDomas Mituzas <midom@users.mediawiki.org>
Mon, 6 Sep 2004 09:34:44 +0000 (09:34 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Mon, 6 Sep 2004 09:34:44 +0000 (09:34 +0000)
includes/Title.php

index c26b2b9..6670bce 100644 (file)
@@ -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;