From: Alexander Ebert Date: Thu, 3 Oct 2013 11:11:45 +0000 (+0200) Subject: Improved 'formError' template X-Git-Tag: 2.0.0_Beta_11~63^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3fbe27f1beeb589a4ee202bd862b9507929939b5;p=GitHub%2FWoltLab%2FWCF.git Improved 'formError' template --- diff --git a/com.woltlab.wcf/templates/formError.tpl b/com.woltlab.wcf/templates/formError.tpl index e9ea3c5744..d9b2e5e9d4 100644 --- a/com.woltlab.wcf/templates/formError.tpl +++ b/com.woltlab.wcf/templates/formError.tpl @@ -1,4 +1,4 @@ -{if $errorField} +{if !$errorField|empty} {if ($errorField|is_array && $errorField[__securityToken]|isset) || $errorField == '__securityToken'}

{lang}wcf.global.form.error.securityToken{/lang}

{else} diff --git a/wcfsetup/install/files/acp/templates/formError.tpl b/wcfsetup/install/files/acp/templates/formError.tpl new file mode 100644 index 0000000000..d9b2e5e9d4 --- /dev/null +++ b/wcfsetup/install/files/acp/templates/formError.tpl @@ -0,0 +1,7 @@ +{if !$errorField|empty} + {if ($errorField|is_array && $errorField[__securityToken]|isset) || $errorField == '__securityToken'} +

{lang}wcf.global.form.error.securityToken{/lang}

+ {else} +

{lang}wcf.global.form.error{/lang}

+ {/if} +{/if} \ No newline at end of file