Rename method to remove reactions
authorJoshua Rüsweg <josh@bastelstu.be>
Mon, 17 Sep 2018 09:56:49 +0000 (11:56 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Mon, 17 Sep 2018 09:57:20 +0000 (11:57 +0200)
See #2508

wcfsetup/install/files/lib/system/like/LikeHandler.class.php
wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php

index db68d31be248451aa8e94ab3af3af2ed4f198f22..8c2a7048f0f526238e804eb9396aeb5f3c3bbb13 100644 (file)
@@ -167,7 +167,7 @@ class LikeHandler extends SingletonFactory {
         * @param       string[]        $notificationObjectTypes
         */
        public function removeLikes($objectType, array $objectIDs, array $notificationObjectTypes = []) {
-               ReactionHandler::getInstance()->removeReacts($objectType, $objectIDs, $notificationObjectTypes);
+               ReactionHandler::getInstance()->removeReactions($objectType, $objectIDs, $notificationObjectTypes);
        }
        
        /**
index a4b8b7b1cde87ce27a41f31e54921b1ae36f73f8..c7f503ad9a05dea81f890b2b59bcb489b236a2ee 100644 (file)
@@ -653,7 +653,7 @@ class ReactionHandler extends SingletonFactory {
         * @param       integer[]       $objectIDs
         * @param       string[]        $notificationObjectTypes
         */
-       public function removeReacts($objectType, array $objectIDs, array $notificationObjectTypes = []) {
+       public function removeReactions($objectType, array $objectIDs, array $notificationObjectTypes = []) {
                $objectTypeObj = $this->getObjectType($objectType);
                
                if ($objectTypeObj === null) {