From: Ori Livneh Date: Tue, 23 Jun 2015 03:26:48 +0000 (-0700) Subject: WikiPage::isParserCacheUsed: change 'oldid' to 'oldId' X-Git-Tag: 1.31.0-rc.0~11012 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=0586f3a44ad2e207eb4c2d8743f0a5bd97fd531a;p=lhc%2Fweb%2Fwiklou.git WikiPage::isParserCacheUsed: change 'oldid' to 'oldId' Change-Id: Ic68206a1f276c9e5a5b09ed5e2b0422589dfa161 --- diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index cb3def3ed6..ad5842115e 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -1082,13 +1082,13 @@ class WikiPage implements Page, IDBAccessObject { * Should the parser cache be used? * * @param ParserOptions $parserOptions ParserOptions to check - * @param int $oldid + * @param int $oldId * @return bool */ - public function isParserCacheUsed( ParserOptions $parserOptions, $oldid ) { + public function isParserCacheUsed( ParserOptions $parserOptions, $oldId ) { return $parserOptions->getStubThreshold() == 0 && $this->exists() - && ( $oldid === null || $oldid === 0 || $oldid === $this->getLatest() ) + && ( $oldId === null || $oldId === 0 || $oldId === $this->getLatest() ) && $this->getContentHandler()->isParserCacheSupported(); }