Improved 'formError' template
authorAlexander Ebert <ebert@woltlab.com>
Thu, 3 Oct 2013 11:11:45 +0000 (13:11 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 3 Oct 2013 11:11:45 +0000 (13:11 +0200)
com.woltlab.wcf/templates/formError.tpl
wcfsetup/install/files/acp/templates/formError.tpl [new file with mode: 0644]

index e9ea3c5744f0e6721210a1bfd960acd7916d05e0..d9b2e5e9d40930a937c21146d88c8ba72915e849 100644 (file)
@@ -1,4 +1,4 @@
-{if $errorField}
+{if !$errorField|empty}
        {if ($errorField|is_array && $errorField[__securityToken]|isset) || $errorField == '__securityToken'}
                <p class="error">{lang}wcf.global.form.error.securityToken{/lang}</p>
        {else}
diff --git a/wcfsetup/install/files/acp/templates/formError.tpl b/wcfsetup/install/files/acp/templates/formError.tpl
new file mode 100644 (file)
index 0000000..d9b2e5e
--- /dev/null
@@ -0,0 +1,7 @@
+{if !$errorField|empty}
+       {if ($errorField|is_array && $errorField[__securityToken]|isset) || $errorField == '__securityToken'}
+               <p class="error">{lang}wcf.global.form.error.securityToken{/lang}</p>
+       {else}
+               <p class="error">{lang}wcf.global.form.error{/lang}</p>
+       {/if}
+{/if}
\ No newline at end of file