Stop watchlist links from hoping around from bold to non-bold
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 9 Oct 2008 03:41:29 +0000 (03:41 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 9 Oct 2008 03:41:29 +0000 (03:41 +0000)
includes/UserMailer.php

index 561ad1d..05ad2b6 100644 (file)
@@ -399,7 +399,9 @@ class EmailNotification {
 
                $this->sendMails();
 
-               if ( $wgShowUpdatedMarker || $wgEnotifWatchlist ) {
+               $latestTimestamp = Revision::getTimestampFromId( $title->getLatestRevID() );
+               // 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
                        # listed with an "updated since your last visit" icon in the watch list. Do
                        # not do this to users for their own edits.