r86329 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86328‎ | r86329 | r86330 >
Date:17:59, 18 April 2011
Author:ialex
Status:ok
Tags:
Comment:
* (bug 28592) Wrong timestamp were displayed in old revisions
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -3624,11 +3624,12 @@
36253625 }
36263626
36273627 $revision = Revision::newFromId( $oldid );
 3628+ $timestamp = $revision->getTimestamp();
36283629
36293630 $current = ( $oldid == $this->mLatest );
3630 - $td = $wgLang->timeanddate( $this->mTimestamp, true );
3631 - $tddate = $wgLang->date( $this->mTimestamp, true );
3632 - $tdtime = $wgLang->time( $this->mTimestamp, true );
 3631+ $td = $wgLang->timeanddate( $timestamp, true );
 3632+ $tddate = $wgLang->date( $timestamp, true );
 3633+ $tdtime = $wgLang->time( $timestamp, true );
36333634 $sk = $wgUser->getSkin();
36343635 $lnk = $current
36353636 ? wfMsgHtml( 'currentrevisionlink' )

Sign-offs

UserFlagDate
MaxSemtested18:09, 18 April 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r79874Only set $mUser, $mUserText, $mComment and $mTimestamp fields in fetchContent...ialex20:07, 8 January 2011

Status & tagging log