Index: trunk/phase3/includes/WikiPage.php |
— | — | @@ -43,6 +43,11 @@ |
44 | 44 | protected $mTimestamp = ''; |
45 | 45 | |
46 | 46 | /** |
| 47 | + * @var string |
| 48 | + */ |
| 49 | + protected $mTouched = '19700101000000'; |
| 50 | + |
| 51 | + /** |
47 | 52 | * Constructor and clear the article |
48 | 53 | * @param $title Title Reference to a Title object. |
49 | 54 | */ |
— | — | @@ -243,6 +248,7 @@ |
244 | 249 | |
245 | 250 | $this->mRedirectTarget = null; # Title object if set |
246 | 251 | $this->mLastRevision = null; # Latest revision |
| 252 | + $this->mTouched = '19700101000000'; |
247 | 253 | $this->mTimestamp = ''; |
248 | 254 | $this->mIsRedirect = false; |
249 | 255 | $this->mLatest = false; |
— | — | @@ -379,6 +385,7 @@ |
380 | 386 | # Old-fashioned restrictions |
381 | 387 | $this->mTitle->loadRestrictions( $data->page_restrictions ); |
382 | 388 | |
| 389 | + $this->mTouched = wfTimestamp( TS_MW, $data->page_touched ); |
383 | 390 | $this->mIsRedirect = intval( $data->page_is_redirect ); |
384 | 391 | $this->mLatest = intval( $data->page_latest ); |
385 | 392 | } else { |
— | — | @@ -505,7 +512,7 @@ |
506 | 513 | if ( !$this->mDataLoaded ) { |
507 | 514 | $this->loadPageData(); |
508 | 515 | } |
509 | | - return $this->mTitle->getTouched(); |
| 516 | + return $this->mTouched; |
510 | 517 | } |
511 | 518 | |
512 | 519 | /** |