Index: trunk/phase3/includes/User.php |
— | — | @@ -2577,10 +2577,8 @@ |
2578 | 2578 | * Resets all of the given user's page-change notification timestamps. |
2579 | 2579 | * If e-notif e-mails are on, they will receive notification mails on |
2580 | 2580 | * the next change of any watched page. |
2581 | | - * |
2582 | | - * @param $currentUser Int User ID |
2583 | 2581 | */ |
2584 | | - function clearAllNotifications( $currentUser ) { |
| 2582 | + function clearAllNotifications() { |
2585 | 2583 | global $wgUseEnotif, $wgShowUpdatedMarker; |
2586 | 2584 | if ( !$wgUseEnotif && !$wgShowUpdatedMarker ) { |
2587 | 2585 | $this->setNewtalk( false ); |
— | — | @@ -2592,7 +2590,7 @@ |
2593 | 2591 | array( /* SET */ |
2594 | 2592 | 'wl_notificationtimestamp' => null |
2595 | 2593 | ), array( /* WHERE */ |
2596 | | - 'wl_user' => $currentUser |
| 2594 | + 'wl_user' => $this->getId() |
2597 | 2595 | ), __METHOD__ |
2598 | 2596 | ); |
2599 | 2597 | # We also need to clear here the "you have new message" notification for the own user_talk page |