From 5f723f8552795d52428a60e969f17ca16895fd12 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 15 Dec 2011 16:52:51 +0000 Subject: [PATCH] Get rid of a few more $wgTitles --- includes/Wiki.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Wiki.php b/includes/Wiki.php index e4e5b30ab8..cc29e344b9 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -593,11 +593,11 @@ class MediaWiki { 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(); @@ -605,7 +605,7 @@ class MediaWiki { $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(); -- 2.20.1