Fix cleanup issue
authorJoshua Rüsweg <josh@bastelstu.be>
Wed, 1 Aug 2018 18:46:40 +0000 (20:46 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Wed, 1 Aug 2018 18:46:40 +0000 (20:46 +0200)
See #2508

com.woltlab.wcf/templates/headIncludeJavaScript.tpl

index 03716c9b38c26924085360b696eb93f6db20d7c1..043b58d55e0a031c60ca60519a6bd54647a47b38 100644 (file)
@@ -135,8 +135,7 @@ 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()