Avoid slave lag on $title->getLatestRevID()
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 24 Jan 2009 18:37:52 +0000 (18:37 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 24 Jan 2009 18:37:52 +0000 (18:37 +0000)
includes/UserMailer.php

index 3d74a3d..a2d4bae 100644 (file)
@@ -400,7 +400,7 @@ class EmailNotification {
                        $this->compose( $user );
                }
 
-               $latestTimestamp = Revision::getTimestampFromId( $title, $title->getLatestRevID() );
+               $latestTimestamp = Revision::getTimestampFromId( $title, $title->getLatestRevID(GAID_FOR_UPDATE) );
                // Do not update watchlists if something else already did.
                if ( $timestamp >= $latestTimestamp && ($wgShowUpdatedMarker || $wgEnotifWatchlist) ) {
                        # Mark the changed watch-listed page with a timestamp, so that the page is