From 74cbd6b05ff72bad2b509dc74ddd84ad51faa7b7 Mon Sep 17 00:00:00 2001 From: tomek Date: Tue, 10 Jul 2012 15:11:26 -0400 Subject: [PATCH] fix problem with retriving fresh LatestRevID when GAID_FOR_UPDATE Change-Id: Idff009752da3336383a20581d79ffd231332f463 --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1