From edb504a778b029be8088c3ecf16d18868fbe6106 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Mon, 6 Sep 2004 09:57:30 +0000 Subject: [PATCH] fix timestamps, sequences --- includes/Title.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 6670bcee43..b05629a029 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1088,11 +1088,11 @@ class Title { $fname = 'MovePageForm::moveToNewTitle'; $comment = wfMsg( '1movedto2', $this->getPrefixedText(), $nt->getPrefixedText() ); - $now = wfTimestampNow(); - $won = wfInvertTimestamp( $now ); $newid = $nt->getArticleID(); $oldid = $this->getArticleID(); $dbw =& wfGetDB( DB_MASTER ); + $now = $dbw->timestamp(); + $won = wfInvertTimestamp( wfTimestamp(TS_MW,$now) ); # Rename cur entry $dbw->updateArray( 'cur', @@ -1107,8 +1107,9 @@ class Title { $wgLinkCache->clearLink( $nt->getPrefixedDBkey() ); - # Insert redirct + # Insert redirect $dbw->insertArray( 'cur', array( + 'cur_id' => $dbw->nextSequenceValue('cur_cur_id_seq'), 'cur_namespace' => $this->getNamespace(), 'cur_title' => $this->getDBkey(), 'cur_comment' => $comment, -- 2.20.1