From: Aaron Schulz Date: Wed, 8 Dec 2010 07:10:43 +0000 (+0000) Subject: Assert that revision timestamp actually matches Article->mTimestamp X-Git-Tag: 1.31.0-rc.0~33449 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=cb7cb199476873fd146a0943527bd1ac1c4a705b;p=lhc%2Fweb%2Fwiklou.git Assert that revision timestamp actually matches Article->mTimestamp --- 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 );