define.amd = __require_define_amd;
$.holdReady(true);
- WCF.User.init({@$__wcf->user->userID}, '{@$__wcf->user->username|encodeJS}');
+ WCF.User.init(
+ {@$__wcf->user->userID},
+ {if $__wcf->user->userID}'{@$__wcf->user->username|encodeJS}'{else}''{/if}
+ );
</script>
-{js application='wcf' file='WCF.Like' bundle='WCF.Combined' hasTiny=true}
{js application='wcf' file='WCF.ACL' bundle='WCF.Combined' hasTiny=true}
{js application='wcf' file='WCF.Attachment' bundle='WCF.Combined' hasTiny=true}
{js application='wcf' file='WCF.ColorPicker' bundle='WCF.Combined' hasTiny=true}