From: Aaron Schulz Date: Mon, 13 Apr 2015 19:18:31 +0000 (-0700) Subject: Made WatchedItem use Revision::getTimestampFromId X-Git-Tag: 1.31.0-rc.0~11724^2 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=f17392feb5d60ba132e651ba02e1a8b9c960aace;p=lhc%2Fweb%2Fwiklou.git Made WatchedItem use Revision::getTimestampFromId Change-Id: I3a895a69e8f4678b82a4e50f70d6bfc4df932d74 --- diff --git a/includes/WatchedItem.php b/includes/WatchedItem.php index 4d226924a3..524e701b69 100644 --- a/includes/WatchedItem.php +++ b/includes/WatchedItem.php @@ -240,11 +240,7 @@ class WatchedItem { } else { // Oldid given and isn't the latest; update the timestamp. // This will result in no further notification emails being sent! - $dbr = wfGetDB( DB_SLAVE ); - $notificationTimestamp = $dbr->selectField( - 'revision', 'rev_timestamp', - array( 'rev_page' => $title->getArticleID(), 'rev_id' => $oldid ) - ); + $notificationTimestamp = Revision::getTimestampFromId( $title, $oldid ); // We need to go one second to the future because of various strict comparisons // throughout the codebase $ts = new MWTimestamp( $notificationTimestamp );