From f7ccd8a8af679d902f45b8544d97452796170e78 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Mon, 6 Aug 2018 14:53:23 +0200 Subject: [PATCH] Fix typo (rename supportReactions to supportsReactions) See #2508 --- com.woltlab.wcf/objectType.xml | 6 +++--- .../files/lib/data/comment/LikeableComment.class.php | 2 +- .../data/comment/response/LikeableCommentResponse.class.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/com.woltlab.wcf/objectType.xml b/com.woltlab.wcf/objectType.xml index 9d64a5c68c..bd4231d08d 100644 --- a/com.woltlab.wcf/objectType.xml +++ b/com.woltlab.wcf/objectType.xml @@ -49,7 +49,7 @@ com.woltlab.wcf.likeableArticle.recentActivityEvent com.woltlab.wcf.user.recentActivityEvent wcf\system\user\activity\event\LikeableArticleUserActivityEvent - 1 + 1 com.woltlab.wcf.articleComment.recentActivityEvent @@ -259,14 +259,14 @@ com.woltlab.wcf.notification.objectType wcf\system\user\notification\object\type\LikeUserNotificationObjectType com.woltlab.wcf.user - 1 + 1 com.woltlab.wcf.user.profileComment.response.like.notification com.woltlab.wcf.notification.objectType wcf\system\user\notification\object\type\LikeUserNotificationObjectType com.woltlab.wcf.user - 1 + 1 diff --git a/wcfsetup/install/files/lib/data/comment/LikeableComment.class.php b/wcfsetup/install/files/lib/data/comment/LikeableComment.class.php index 7a9972dc29..06a3939843 100644 --- a/wcfsetup/install/files/lib/data/comment/LikeableComment.class.php +++ b/wcfsetup/install/files/lib/data/comment/LikeableComment.class.php @@ -51,7 +51,7 @@ class LikeableComment extends AbstractLikeObject implements IReactionObject { */ public function sendNotification(Like $like) { $objectType = CommentHandler::getInstance()->getObjectType($this->getDecoratedObject()->objectTypeID); - if (UserNotificationHandler::getInstance()->getObjectTypeID($objectType->objectType.'.like.notification') && UserNotificationHandler::getInstance()->getObjectTypeProcessor($objectType->objectType.'.like.notification')->supportReactions) { + if (UserNotificationHandler::getInstance()->getObjectTypeID($objectType->objectType.'.like.notification') && UserNotificationHandler::getInstance()->getObjectTypeProcessor($objectType->objectType.'.like.notification')->supportsReactions) { if ($this->userID != WCF::getUser()->userID) { $notificationObject = new LikeUserNotificationObject($like); UserNotificationHandler::getInstance()->fireEvent( diff --git a/wcfsetup/install/files/lib/data/comment/response/LikeableCommentResponse.class.php b/wcfsetup/install/files/lib/data/comment/response/LikeableCommentResponse.class.php index 05fba9b1af..00655bef14 100644 --- a/wcfsetup/install/files/lib/data/comment/response/LikeableCommentResponse.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/LikeableCommentResponse.class.php @@ -53,7 +53,7 @@ class LikeableCommentResponse extends AbstractLikeObject implements IReactionObj public function sendNotification(Like $like) { $comment = new Comment($this->getDecoratedObject()->commentID); $objectType = CommentHandler::getInstance()->getObjectType($comment->objectTypeID); - if (UserNotificationHandler::getInstance()->getObjectTypeID($objectType->objectType.'.response.like.notification') && UserNotificationHandler::getInstance()->getObjectTypeProcessor($objectType->objectType.'.response.like.notification')->supportReactions) { + if (UserNotificationHandler::getInstance()->getObjectTypeID($objectType->objectType.'.response.like.notification') && UserNotificationHandler::getInstance()->getObjectTypeProcessor($objectType->objectType.'.response.like.notification')->supportsReactions) { if ($this->userID != WCF::getUser()->userID) { $notificationObject = new LikeUserNotificationObject($like); UserNotificationHandler::getInstance()->fireEvent( -- 2.20.1