From 208eccd1d89a56db0d0b5ab82a17d14b9a2cb06e Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 30 Jun 2011 13:56:45 +0000 Subject: [PATCH] And I forgot to commit this file in r91074 --- includes/User.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/User.php b/includes/User.php index 20863c3d65..914065fb8f 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2577,10 +2577,8 @@ class User { * Resets all of the given user's page-change notification timestamps. * If e-notif e-mails are on, they will receive notification mails on * the next change of any watched page. - * - * @param $currentUser Int User ID */ - function clearAllNotifications( $currentUser ) { + function clearAllNotifications() { global $wgUseEnotif, $wgShowUpdatedMarker; if ( !$wgUseEnotif && !$wgShowUpdatedMarker ) { $this->setNewtalk( false ); @@ -2592,7 +2590,7 @@ class User { array( /* SET */ 'wl_notificationtimestamp' => null ), array( /* WHERE */ - 'wl_user' => $currentUser + 'wl_user' => $this->getId() ), __METHOD__ ); # We also need to clear here the "you have new message" notification for the own user_talk page -- 2.20.1