r107944 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107943‎ | r107944 | r107945 >
Date:21:28, 3 January 2012
Author:mah
Status:ok
Tags:
Comment:
re r100475: use proper accessors
Modified paths:
  • /trunk/extensions/Collection/Collection.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.body.php
@@ -752,7 +752,7 @@
753753 'title' => $articleTitle->getPrefixedText(),
754754 'latest' => $latest,
755755 'revision' => $oldid,
756 - 'timestamp' => wfTimestamp( TS_UNIX, $revision->mTimestamp ),
 756+ 'timestamp' => wfTimestamp( TS_UNIX, $revision->getTimestamp() ),
757757 'url' => $articleTitle->getCanonicalURL(),
758758 'currentVersion' => $currentVersion,
759759 );
@@ -1143,7 +1143,7 @@
11441144 }
11451145
11461146 $revision = Revision::newFromTitle( $title, $oldid );
1147 - $article['timestamp'] = wfTimestamp( TS_UNIX, $revision->mTimestamp );
 1147+ $article['timestamp'] = wfTimestamp( TS_UNIX, $revision->getTimestamp() );
11481148
11491149 $this->renderCollection( array( 'items' => array( $article ) ), $title, $writer );
11501150 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r100475Revision objects now always use the current name of users, loading it on dema...aaron23:20, 21 October 2011

Status & tagging log