From 232c9420699eafae2b32c27311e9ff2a8dc72443 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 3 Aug 2014 15:06:58 +0200 Subject: [PATCH] Fix previous commit --- .../data/comment/response/CommentResponseAction.class.php | 2 +- .../files/lib/system/comment/CommentHandler.class.php | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php b/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php index 93aeb99994..91e849508b 100644 --- a/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php @@ -118,7 +118,7 @@ class CommentResponseAction extends AbstractDatabaseObjectAction { // delete notifications if (UserNotificationHandler::getInstance()->getObjectTypeID($objectType->objectType.'.response.notification')) { - UserNotificationHandler::getInstance()->removeNotifications($objectType->objectType.'.response.notification',$objectIDs); + UserNotificationHandler::getInstance()->removeNotifications($objectType->objectType.'.response.notification', $objectIDs); } $likeObjectIDs = array_merge($likeObjectIDs, $objectIDs); diff --git a/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php b/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php index 7314ba62b9..928c2219ac 100644 --- a/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php +++ b/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php @@ -144,7 +144,7 @@ class CommentHandler extends SingletonFactory { } // delete notifications if (UserNotificationHandler::getInstance()->getObjectTypeID($objectTypeObj->objectType.'.notification')) { - UserNotificationHandler::getInstance()->removeNotifications('comment', $objectTypeObj->objectType.'.notification', array(), $commentIDs); + UserNotificationHandler::getInstance()->removeNotifications($objectTypeObj->objectType.'.notification', $commentIDs); } if (!empty($responseIDs)) { @@ -157,8 +157,7 @@ class CommentHandler extends SingletonFactory { } // delete notifications (for responses) if (UserNotificationHandler::getInstance()->getObjectTypeID($objectTypeObj->objectType.'.response.notification')) { - UserNotificationHandler::getInstance()->removeNotifications('commentResponse', $objectTypeObj->objectType.'.response.notification', array(), $responseIDs); - UserNotificationHandler::getInstance()->removeNotifications('commentResponseOwner', $objectTypeObj->objectType.'.response.notification', array(), $responseIDs); + UserNotificationHandler::getInstance()->removeNotifications($objectTypeObj->objectType.'.response.notification', $responseIDs); } } -- 2.20.1