Fixed template scripting error
authorAlexander Ebert <ebert@woltlab.com>
Fri, 12 Oct 2012 16:42:14 +0000 (18:42 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 12 Oct 2012 16:42:14 +0000 (18:42 +0200)
acptemplates/styleAdd.tpl

index ad4aa44520089f9ee4e802d7135b1738003bf79d..566fa86a19a4eabcdb38905c4762122a83a440ee 100644 (file)
                
                new WCF.ACP.Style.ImageUpload(0, '{$tmpHash}');
                
-               {if $action == 'edit' && $__wcf->getSession()->getPermission('admin.style.canAddStyle')}new WCF.ACP.Style.CopyStyle({@$style->styleID});{/if}
+               {if $action == 'edit' && $__wcf->getSession()->getPermission('admin.style.canAddStyle')}
+                       new WCF.ACP.Style.CopyStyle({@$style->styleID});
                
-               WCF.Language.addObject({
-                       'wcf.acp.style.copyStyle.confirmMessage': '{lang}wcf.acp.style.copyStyle.confirmMessage{/lang}'
-               });
+                       WCF.Language.addObject({
+                               'wcf.acp.style.copyStyle.confirmMessage': '{lang}wcf.acp.style.copyStyle.confirmMessage{/lang}'
+                       });
+               {/if}
        });
        //]]>
 </script>