WikiPage::isParserCacheUsed: change 'oldid' to 'oldId'
authorOri Livneh <ori@wikimedia.org>
Tue, 23 Jun 2015 03:26:48 +0000 (20:26 -0700)
committerOri.livneh <ori@wikimedia.org>
Tue, 23 Jun 2015 03:29:08 +0000 (03:29 +0000)
Change-Id: Ic68206a1f276c9e5a5b09ed5e2b0422589dfa161

includes/page/WikiPage.php

index cb3def3..ad58421 100644 (file)
@@ -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();
        }