Index: trunk/phase3/includes/Article.php |
— | — | @@ -499,8 +499,12 @@ |
500 | 500 | # the correct version information. |
501 | 501 | $wgOut->setRevisionId( $this->mPage->getLatest() ); |
502 | 502 | # Preload timestamp to avoid a DB hit |
503 | | - $wgOut->setRevisionTimestamp( $this->mParserOutput->getTimestamp() ); |
504 | | - $this->mPage->setTimestamp( $this->mParserOutput->getTimestamp() ); |
| 503 | + $cachedTimestamp = $this->mParserOutput->getTimestamp(); |
| 504 | + var_dump( $cachedTimestamp ); |
| 505 | + if ( $cachedTimestamp !== null ) { |
| 506 | + $wgOut->setRevisionTimestamp( $cachedTimestamp ); |
| 507 | + $this->mPage->setTimestamp( $cachedTimestamp ); |
| 508 | + } |
505 | 509 | $outputDone = true; |
506 | 510 | } |
507 | 511 | } |