From: Chad Horohoe Date: Thu, 15 Dec 2011 16:52:51 +0000 (+0000) Subject: Get rid of a few more $wgTitles X-Git-Tag: 1.31.0-rc.0~25954 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=5f723f8552795d52428a60e969f17ca16895fd12;p=lhc%2Fweb%2Fwiklou.git Get rid of a few more $wgTitles --- 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();