From: Alexandre Emsenhuber Date: Mon, 18 Apr 2011 17:59:32 +0000 (+0000) Subject: * (bug 28592) Wrong timestamp were displayed in old revisions X-Git-Tag: 1.31.0-rc.0~30729 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=a725d405f555ed8b042ebf1a3cf194870f2ba41f;p=lhc%2Fweb%2Fwiklou.git * (bug 28592) Wrong timestamp were displayed in old revisions --- diff --git a/includes/Article.php b/includes/Article.php index f1862ea362..bd20b6e21b 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -3624,11 +3624,12 @@ class Article { } $revision = Revision::newFromId( $oldid ); + $timestamp = $revision->getTimestamp(); $current = ( $oldid == $this->mLatest ); - $td = $wgLang->timeanddate( $this->mTimestamp, true ); - $tddate = $wgLang->date( $this->mTimestamp, true ); - $tdtime = $wgLang->time( $this->mTimestamp, true ); + $td = $wgLang->timeanddate( $timestamp, true ); + $tddate = $wgLang->date( $timestamp, true ); + $tdtime = $wgLang->time( $timestamp, true ); $sk = $wgUser->getSkin(); $lnk = $current ? wfMsgHtml( 'currentrevisionlink' )