Revision: 46158
Author:   aaron
Date:     2009-01-24 18:37:52 +0000 (Sat, 24 Jan 2009)

Log Message:
-----------
Avoid slave lag on $title->getLatestRevID()

Modified Paths:
--------------
    trunk/phase3/includes/UserMailer.php

Modified: trunk/phase3/includes/UserMailer.php
===================================================================
--- trunk/phase3/includes/UserMailer.php        2009-01-24 18:36:17 UTC (rev 
46157)
+++ trunk/phase3/includes/UserMailer.php        2009-01-24 18:37:52 UTC (rev 
46158)
@@ -400,7 +400,7 @@
                        $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



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to