From: Joshua Rüsweg Date: Mon, 28 Jan 2019 18:45:36 +0000 (+0100) Subject: Fix usage of unknown class X-Git-Tag: 5.2.0_Alpha_1~337 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a8cc0823c320dc1247f1bf2e7bc31f3be2f363b0;p=GitHub%2FWoltLab%2FWCF.git Fix usage of unknown class --- diff --git a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php index 2724d30349..ee9b2a2900 100644 --- a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php +++ b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php @@ -1071,9 +1071,9 @@ class CommentAction extends AbstractDatabaseObjectAction implements IMessageInli // load like data if (MODULE_LIKE) { $likeData = []; - $commentObjectType = LikeHandler::getInstance()->getObjectType('com.woltlab.wcf.comment'); - LikeHandler::getInstance()->loadLikeObjects($commentObjectType, [$comment->commentID]); - $likeData['comment'] = LikeHandler::getInstance()->getLikeObjects($commentObjectType); + $commentObjectType = ReactionHandler::getInstance()->getObjectType('com.woltlab.wcf.comment'); + ReactionHandler::getInstance()->loadLikeObjects($commentObjectType, [$comment->commentID]); + $likeData['comment'] = ReactionHandler::getInstance()->getLikeObjects($commentObjectType); $responseIDs = []; foreach ($comment as $visibleResponse) { @@ -1085,9 +1085,9 @@ class CommentAction extends AbstractDatabaseObjectAction implements IMessageInli } if (!empty($responseIDs)) { - $responseObjectType = LikeHandler::getInstance()->getObjectType('com.woltlab.wcf.comment.response'); - LikeHandler::getInstance()->loadLikeObjects($responseObjectType, $responseIDs); - $likeData['response'] = LikeHandler::getInstance()->getLikeObjects($responseObjectType); + $responseObjectType = ReactionHandler::getInstance()->getObjectType('com.woltlab.wcf.comment.response'); + ReactionHandler::getInstance()->loadLikeObjects($responseObjectType, $responseIDs); + $likeData['response'] = ReactionHandler::getInstance()->getLikeObjects($responseObjectType); } WCF::getTPL()->assign('likeData', $likeData);