* (bug 1370) e-notif correction
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 15 Mar 2005 07:27:48 +0000 (07:27 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 15 Mar 2005 07:27:48 +0000 (07:27 +0000)
includes/Article.php
includes/User.php

index 0c14bd8..3f995d4 100644 (file)
@@ -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 );
                }
+
        }
 
        /**
index e5aa81f..110a9f5 100644 (file)
@@ -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(),