https://www.mediawiki.org/wiki/Special:Code/MediaWiki/106336

Revision: 106336
Author:   demon
Date:     2011-12-15 16:52:51 +0000 (Thu, 15 Dec 2011)
Log Message:
-----------
Get rid of a few more $wgTitles

Modified Paths:
--------------
    trunk/phase3/includes/Wiki.php

Modified: trunk/phase3/includes/Wiki.php
===================================================================
--- trunk/phase3/includes/Wiki.php      2011-12-15 16:46:41 UTC (rev 106335)
+++ trunk/phase3/includes/Wiki.php      2011-12-15 16:52:51 UTC (rev 106336)
@@ -593,11 +593,11 @@
                        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 @@
                                                $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();


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to