From: Matthias Schmidt Date: Mon, 14 Jun 2021 06:40:15 +0000 (+0200) Subject: Stop using deprecated `UserNotificationHandler::markAsConfirmedByID()` X-Git-Tag: 5.5.0_Alpha_1~655 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dd64b96f5c53bc1351fa1ba8136f1920443e01b5;p=GitHub%2FWoltLab%2FWCF.git Stop using deprecated `UserNotificationHandler::markAsConfirmedByID()` See #4281 --- diff --git a/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php b/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php index 6299956998..8fcd897bb4 100644 --- a/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php +++ b/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php @@ -70,7 +70,7 @@ class NotificationConfirmAction extends AbstractAction parent::execute(); if (!$this->notification->confirmTime) { - UserNotificationHandler::getInstance()->markAsConfirmedByID($this->notification->notificationID); + UserNotificationHandler::getInstance()->markAsConfirmedByIDs([$this->notification->notificationID]); } $event = new UserNotificationEvent($this->notification->eventID); diff --git a/wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php b/wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php index a53114281e..6551723334 100644 --- a/wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php +++ b/wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php @@ -222,7 +222,7 @@ class UserNotificationAction extends AbstractDatabaseObjectAction */ public function markAsConfirmed() { - UserNotificationHandler::getInstance()->markAsConfirmedByID($this->notificationEditor->notificationID); + UserNotificationHandler::getInstance()->markAsConfirmedByIDs([$this->notificationEditor->notificationID]); return [ 'markAsRead' => $this->notificationEditor->notificationID,