From 1bfd766b2d6366bf19815b04712753bdac811908 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 15 Mar 2005 07:27:48 +0000 Subject: [PATCH] * (bug 1370) e-notif correction --- includes/Article.php | 5 +++-- includes/User.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 0c14bd8e30..3f995d448a 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -731,8 +731,6 @@ class Article { $this->viewUpdates(); wfProfileOut( $fname ); - - $wgUser->clearNotification( $this->mTitle ); } /** @@ -1852,7 +1850,10 @@ class Article { $this->mTitle->getText() == $wgUser->getName()) { require_once( 'UserTalkUpdate.php' ); $u = new UserTalkUpdate( 0, $this->mTitle->getNamespace(), $this->mTitle->getDBkey(), false, false, false ); + } else { + $wgUser->clearNotification( $this->mTitle ); } + } /** diff --git a/includes/User.php b/includes/User.php index e5aa81fd3f..110a9f55a0 100644 --- a/includes/User.php +++ b/includes/User.php @@ -863,7 +863,7 @@ class User { $dbw =& wfGetDB( DB_MASTER ); $success = $dbw->update( 'watchlist', array( /* SET */ - 'wl_notificationtimestamp' => $dbw->timestamp(0) + 'wl_notificationtimestamp' => 0 ), array( /* WHERE */ 'wl_title' => $title->getDBkey(), 'wl_namespace' => $title->getNamespace(), -- 2.20.1