* Fix for r67185: cache the page if caching is allowed, not the opposite :)
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 10 Jun 2010 15:37:04 +0000 (15:37 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 10 Jun 2010 15:37:04 +0000 (15:37 +0000)
* also removed useless check for $this (can this ever be false?)

includes/Article.php

index 6fb77ff..c28275e 100644 (file)
@@ -4458,7 +4458,7 @@ class Article {
                                $this->mTitle->getPrefixedDBkey() ) );
                }
 
-               if ( $wgEnableParserCache && $cache && $this && !$this->mParserOutput->isCacheable() ) {
+               if ( $wgEnableParserCache && $cache && $this->mParserOutput->isCacheable() ) {
                        $parserCache = ParserCache::singleton();
                        $parserCache->save( $this->mParserOutput, $this, $parserOptions );
                }