From: tomek Date: Tue, 10 Jul 2012 19:11:26 +0000 (-0400) Subject: fix problem with retriving fresh LatestRevID when GAID_FOR_UPDATE X-Git-Tag: 1.31.0-rc.0~23069^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=74cbd6b05ff72bad2b509dc74ddd84ad51faa7b7;p=lhc%2Fweb%2Fwiklou.git fix problem with retriving fresh LatestRevID when GAID_FOR_UPDATE Change-Id: Idff009752da3336383a20581d79ffd231332f463 --- diff --git a/includes/Title.php b/includes/Title.php index 2b1a513a50..6ddf6da4aa 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2859,7 +2859,7 @@ class Title { * @return Int or 0 if the page doesn't exist */ public function getLatestRevID( $flags = 0 ) { - if ( $this->mLatestID !== false ) { + if ( !( $flags & Title::GAID_FOR_UPDATE ) && $this->mLatestID !== false ) { return intval( $this->mLatestID ); } # Calling getArticleID() loads the field from cache as needed