Rename JS variable
authorJoshua Rüsweg <josh@bastelstu.be>
Tue, 29 May 2018 12:33:04 +0000 (14:33 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Tue, 29 May 2018 12:33:04 +0000 (14:33 +0200)
See #2508

com.woltlab.wcf/templates/article.tpl

index 88d3dc45915926df5c15a63dd9d924bbecd68872..0ffe45cfaf7a0574814c2a344e37979fe6679589 100644 (file)
 
 {if MODULE_LIKE && ARTICLE_ENABLE_LIKE}
        <script data-relocate="true">
-               require(['WoltLabSuite/Core/Ui/Reaction/Handler'], function(UiLikeHandler) {
-                       new UiLikeHandler('com.woltlab.wcf.likeableArticle', {
+               require(['WoltLabSuite/Core/Ui/Reaction/Handler'], function(UiReactionHandler) {
+                       new UiReactionHandler('com.woltlab.wcf.likeableArticle', {
                                // permissions
                                canReact: {if $__wcf->getUser()->userID}true{else}false{/if},
                                canReactToOwnContent: {if LIKE_ALLOW_FOR_OWN_CONTENT}true{else}false{/if},