r78049 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78048‎ | r78049 | r78050 >
Date:07:10, 8 December 2010
Author:aaron
Status:ok
Tags:
Comment:
Assert that revision timestamp actually matches Article->mTimestamp
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -2152,6 +2152,7 @@
21532153 'parent_id' => $this->mLatest,
21542154 'user' => $user->getId(),
21552155 'user_text' => $user->getName(),
 2156+ 'timestamp' => $now
21562157 ) );
21572158
21582159 $dbw->begin();
@@ -2255,7 +2256,8 @@
22562257 'text' => $text,
22572258 'user' => $user->getId(),
22582259 'user_text' => $user->getName(),
2259 - ) );
 2260+ 'timestamp' => $now
 2261+ ) );
22602262 $revisionId = $revision->insertOn( $dbw );
22612263
22622264 $this->mTitle->resetArticleID( $newid );

Status & tagging log