return;
}
- if ( $wgUseFileCache && $wgTitle->getNamespace() >= 0 ) {
+ if ( $wgUseFileCache && $this->getTitle()->getNamespace() >= 0 ) {
wfProfileIn( 'main-try-filecache' );
if ( HTMLFileCache::useFileCache( $this->context ) ) {
/* Try low-level file cache hit */
- $cache = HTMLFileCache::newFromTitle( $wgTitle, $action );
+ $cache = HTMLFileCache::newFromTitle( $this->getTitle(), $action );
if ( $cache->isCacheGood( /* Assume up to date */ ) ) {
/* Check incoming headers to see if client has this cached */
$timestamp = $cache->cacheTimestamp();
$cache->loadFromFileCache( $this->context );
}
# Do any stats increment/watchlist stuff
- $article = WikiPage::factory( $wgTitle );
+ $article = WikiPage::factory( $this->getTitle() );
$article->doViewUpdates( $user );
# Tell OutputPage that output is taken care of
$this->context->getOutput()->disable();