Index: trunk/phase3/includes/WikiPage.php |
— | — | @@ -24,7 +24,8 @@ |
25 | 25 | public $mDataLoaded = false; // !< Boolean |
26 | 26 | public $mIsRedirect = false; // !< Boolean |
27 | 27 | public $mLatest = false; // !< Integer (false means "not loaded") |
28 | | - public $mPreparedEdit = false; // !< Array |
| 28 | + public $mPreparedEdit = false; // !< Array |
| 29 | + /**@}}*/ |
29 | 30 | |
30 | 31 | /** |
31 | 32 | * @var Title |
— | — | @@ -36,9 +37,10 @@ |
37 | 38 | */ |
38 | 39 | protected $mLastRevision = null; |
39 | 40 | |
40 | | - protected $mTimestamp = ''; // !< String |
41 | | - protected $mTouched = '19700101000000'; // !< String |
42 | | - /**@}}*/ |
| 41 | + /** |
| 42 | + * @var string; timestamp of the current revision or empty string of not loaded |
| 43 | + */ |
| 44 | + protected $mTimestamp = ''; |
43 | 45 | |
44 | 46 | /** |
45 | 47 | * Constructor and clear the article |
— | — | @@ -242,7 +244,6 @@ |
243 | 245 | $this->mRedirectTarget = null; # Title object if set |
244 | 246 | $this->mLastRevision = null; # Latest revision |
245 | 247 | $this->mTimestamp = ''; |
246 | | - $this->mTouched = '19700101000000'; |
247 | 248 | $this->mIsRedirect = false; |
248 | 249 | $this->mLatest = false; |
249 | 250 | $this->mPreparedEdit = false; |
— | — | @@ -375,7 +376,6 @@ |
376 | 377 | |
377 | 378 | $this->mTitle->loadFromRow( $data ); |
378 | 379 | |
379 | | - $this->mTouched = wfTimestamp( TS_MW, $data->page_touched ); |
380 | 380 | $this->mIsRedirect = intval( $data->page_is_redirect ); |
381 | 381 | $this->mLatest = intval( $data->page_latest ); |
382 | 382 | } else { |
— | — | @@ -502,7 +502,7 @@ |
503 | 503 | if ( !$this->mDataLoaded ) { |
504 | 504 | $this->loadPageData(); |
505 | 505 | } |
506 | | - return $this->mTouched; |
| 506 | + return $this->mTitle->getTouched(); |
507 | 507 | } |
508 | 508 | |
509 | 509 | /** |