From: Alexandre Emsenhuber Date: Thu, 10 Jun 2010 15:37:04 +0000 (+0000) Subject: * Fix for r67185: cache the page if caching is allowed, not the opposite :) X-Git-Tag: 1.31.0-rc.0~36548 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=cf9f80d3e9e46f344ac14fca2eea85ef4e24db11;p=lhc%2Fweb%2Fwiklou.git * Fix for r67185: cache the page if caching is allowed, not the opposite :) * also removed useless check for $this (can this ever be false?) --- diff --git a/includes/Article.php b/includes/Article.php index 6fb77fff21..c28275e97f 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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 ); }