From: Alexandre Emsenhuber Date: Sun, 12 Jun 2011 19:09:14 +0000 (+0000) Subject: Changed some magic __get method calls to accessors, were throwing notices X-Git-Tag: 1.31.0-rc.0~29565 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=3228fdb8ae3d430bfc83711634d4c3196a0a87cc;p=lhc%2Fweb%2Fwiklou.git Changed some magic __get method calls to accessors, were throwing notices --- diff --git a/index.php b/index.php index 754fc13d72..66693c55e4 100644 --- a/index.php +++ b/index.php @@ -130,14 +130,14 @@ function wfIndexMain() { $cache = new HTMLFileCache( $wgTitle, $action ); if ( $cache->isFileCacheGood( /* Assume up to date */ ) ) { /* Check incoming headers to see if client has this cached */ - if ( !$context->output->checkLastModified( $cache->fileCacheTime() ) ) { + if ( !$context->getOutput()->checkLastModified( $cache->fileCacheTime() ) ) { $cache->loadFromFileCache(); } # Do any stats increment/watchlist stuff $article = Article::newFromTitle( $wgTitle, $context ); $article->viewUpdates(); # Tell OutputPage that output is taken care of - $context->output->disable(); + $context->getOutput()->disable(); wfProfileOut( 'index.php-filecache' ); $mediaWiki->finalCleanup(); wfProfileOut( 'index.php' );