r106336 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106335‎ | r106336 | r106337 >
Date:16:52, 15 December 2011
Author:demon
Status:ok
Tags:
Comment:
Get rid of a few more $wgTitles
Modified paths:
  • /trunk/phase3/includes/Wiki.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Wiki.php
@@ -593,11 +593,11 @@
594594 return;
595595 }
596596
597 - if ( $wgUseFileCache && $wgTitle->getNamespace() >= 0 ) {
 597+ if ( $wgUseFileCache && $this->getTitle()->getNamespace() >= 0 ) {
598598 wfProfileIn( 'main-try-filecache' );
599599 if ( HTMLFileCache::useFileCache( $this->context ) ) {
600600 /* Try low-level file cache hit */
601 - $cache = HTMLFileCache::newFromTitle( $wgTitle, $action );
 601+ $cache = HTMLFileCache::newFromTitle( $this->getTitle(), $action );
602602 if ( $cache->isCacheGood( /* Assume up to date */ ) ) {
603603 /* Check incoming headers to see if client has this cached */
604604 $timestamp = $cache->cacheTimestamp();
@@ -605,7 +605,7 @@
606606 $cache->loadFromFileCache( $this->context );
607607 }
608608 # Do any stats increment/watchlist stuff
609 - $article = WikiPage::factory( $wgTitle );
 609+ $article = WikiPage::factory( $this->getTitle() );
610610 $article->doViewUpdates( $user );
611611 # Tell OutputPage that output is taken care of
612612 $this->context->getOutput()->disable();

Status & tagging log