Fix typo (rename supportReactions to supportsReactions)
authorJoshua Rüsweg <josh@bastelstu.be>
Mon, 6 Aug 2018 12:53:23 +0000 (14:53 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Mon, 6 Aug 2018 12:53:23 +0000 (14:53 +0200)
See #2508

com.woltlab.wcf/objectType.xml
wcfsetup/install/files/lib/data/comment/LikeableComment.class.php
wcfsetup/install/files/lib/data/comment/response/LikeableCommentResponse.class.php

index 9d64a5c68c82b1483ed1285d714676c81e4a6a5c..bd4231d08dcdcc57e8481aba20ee11a71d3c1fdb 100644 (file)
@@ -49,7 +49,7 @@
                        <name>com.woltlab.wcf.likeableArticle.recentActivityEvent</name>
                        <definitionname>com.woltlab.wcf.user.recentActivityEvent</definitionname>
                        <classname>wcf\system\user\activity\event\LikeableArticleUserActivityEvent</classname>
-                       <supportReactions>1</supportReactions>
+                       <supportsReactions>1</supportsReactions>
                </type>
                <type>
                        <name>com.woltlab.wcf.articleComment.recentActivityEvent</name>
                        <definitionname>com.woltlab.wcf.notification.objectType</definitionname>
                        <classname>wcf\system\user\notification\object\type\LikeUserNotificationObjectType</classname>
                        <category>com.woltlab.wcf.user</category>
-                       <supportReactions>1</supportReactions>
+                       <supportsReactions>1</supportsReactions>
                </type>
                <type>
                        <name>com.woltlab.wcf.user.profileComment.response.like.notification</name>
                        <definitionname>com.woltlab.wcf.notification.objectType</definitionname>
                        <classname>wcf\system\user\notification\object\type\LikeUserNotificationObjectType</classname>
                        <category>com.woltlab.wcf.user</category>
-                       <supportReactions>1</supportReactions>
+                       <supportsReactions>1</supportsReactions>
                </type>
                
                <type>
index 7a9972dc29f6a571852c4ebb65b11ab8bdfc8981..06a39398431111afe238227e6f3012255bea08e0 100644 (file)
@@ -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(
index 05fba9b1aff19c2bc6e95dcc68b1bbee7c814f1e..00655bef146dff8802abf392e3d41c0b84802b9d 100644 (file)
@@ -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(