From cb7cb199476873fd146a0943527bd1ac1c4a705b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 8 Dec 2010 07:10:43 +0000 Subject: [PATCH] Assert that revision timestamp actually matches Article->mTimestamp --- includes/Article.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 7dd2ddc4f1..4fbcca30a6 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2152,6 +2152,7 @@ class Article { 'parent_id' => $this->mLatest, 'user' => $user->getId(), 'user_text' => $user->getName(), + 'timestamp' => $now ) ); $dbw->begin(); @@ -2255,7 +2256,8 @@ class Article { 'text' => $text, 'user' => $user->getId(), 'user_text' => $user->getName(), - ) ); + 'timestamp' => $now + ) ); $revisionId = $revision->insertOn( $dbw ); $this->mTitle->resetArticleID( $newid ); -- 2.20.1