diff options
author | Happy-melon <happy-melon@users.mediawiki.org> | 2011-06-03 10:54:13 +0000 |
---|---|---|
committer | Happy-melon <happy-melon@users.mediawiki.org> | 2011-06-03 10:54:13 +0000 |
commit | 6e7eb67b43531786fe22e5da4b43d5db1e7c9b12 (patch) | |
tree | fbd51e80304d0b778d498fc4096cd21a17169257 /index.php | |
parent | 8f7038afe36e4cf46e910807b7c191ced9c92c77 (diff) | |
download | mediawikicore-6e7eb67b43531786fe22e5da4b43d5db1e7c9b12.tar.gz mediawikicore-6e7eb67b43531786fe22e5da4b43d5db1e7c9b12.zip |
Start unpicking r85288 (magic __get() accessor for RequestContext). Instead, bring back some of r86872 (abstract base class for classes providing access to RequestContext methods), which is a more 'classical' solution.
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/89406
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php index c7d0f92d117b..10bea5f1ecd6 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' ); |