Add missing react language var
authorJoshua Rüsweg <josh@bastelstu.be>
Wed, 1 Aug 2018 11:21:39 +0000 (13:21 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Wed, 1 Aug 2018 11:21:39 +0000 (13:21 +0200)
See #2508

com.woltlab.wcf/templates/headIncludeJavaScript.tpl

index 5aa8a0ef2b96547bd741322ce75e42d0d6c7ecaa..03716c9b38c26924085360b696eb93f6db20d7c1 100644 (file)
@@ -119,7 +119,8 @@ requirejs.config({
                                'wcf.like.button.dislike': '{lang}wcf.like.button.dislike{/lang}',
                                'wcf.like.tooltip': '{lang}wcf.like.jsTooltip{/lang}',
                                'wcf.like.summary': '{lang}wcf.like.summary{/lang}',
-                               'wcf.like.details': '{lang}wcf.like.details{/lang}'
+                               'wcf.like.details': '{lang}wcf.like.details{/lang}',
+                               'wcf.reactions.react': '{lang}wcf.reactions.react{/lang}'
                        {/if}
                        
                        {event name='javascriptLanguageImport'}
@@ -134,7 +135,8 @@ requirejs.config({
                        styleChanger: {if $__wcf->getStyleHandler()->showStyleChanger()}true{else}false{/if}
                });
                
-               User.init({@$__wcf->user->userID}, '{@$__wcf->user->username|encodeJS}', {if $__wcf->user->userID}'{@$__wcf->user->getLink()|encodeJS}'{else}''{/if});
+User.init({@$__wcf->user->userID}, '{@$__wcf->user->username|encodeJS}', {if $__wcf->user->userID}'{@$__wcf->user->getLink()|encodeJS}';
+               {else}'';{/if})
        });
        
        // prevent jQuery and other libraries from utilizing define()