r107992 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107991‎ | r107992 | r107993 >
Date:08:24, 4 January 2012
Author:ialex
Status:ok
Tags:
Comment:
Fix for r107945: also partially revert r107842
Modified paths:
  • /trunk/phase3/includes/WikiPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/WikiPage.php
@@ -43,6 +43,11 @@
4444 protected $mTimestamp = '';
4545
4646 /**
 47+ * @var string
 48+ */
 49+ protected $mTouched = '19700101000000';
 50+
 51+ /**
4752 * Constructor and clear the article
4853 * @param $title Title Reference to a Title object.
4954 */
@@ -243,6 +248,7 @@
244249
245250 $this->mRedirectTarget = null; # Title object if set
246251 $this->mLastRevision = null; # Latest revision
 252+ $this->mTouched = '19700101000000';
247253 $this->mTimestamp = '';
248254 $this->mIsRedirect = false;
249255 $this->mLatest = false;
@@ -379,6 +385,7 @@
380386 # Old-fashioned restrictions
381387 $this->mTitle->loadRestrictions( $data->page_restrictions );
382388
 389+ $this->mTouched = wfTimestamp( TS_MW, $data->page_touched );
383390 $this->mIsRedirect = intval( $data->page_is_redirect );
384391 $this->mLatest = intval( $data->page_latest );
385392 } else {
@@ -505,7 +512,7 @@
506513 if ( !$this->mDataLoaded ) {
507514 $this->loadPageData();
508515 }
509 - return $this->mTitle->getTouched();
 516+ return $this->mTouched;
510517 }
511518
512519 /**

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r107842* Removed WikiPage::$mTouched and use the value from Title; that member is no...ialex17:26, 2 January 2012
r107945Revert r107769, r107771, r107825, r107840, r107927, r107934...brion21:44, 3 January 2012

Status & tagging log