From: Tim Düsterhus Date: Thu, 10 Dec 2020 08:45:27 +0000 (+0100) Subject: Simplify recaptcha key checks in template X-Git-Tag: 5.4.0_Alpha_1~552^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=083b1abf0d2c70c1c85ef3c5e87bc4176d575384;p=GitHub%2FWoltLab%2FWCF.git Simplify recaptcha key checks in template Co-authored-by: Alexander Ebert --- diff --git a/com.woltlab.wcf/templates/recaptcha.tpl b/com.woltlab.wcf/templates/recaptcha.tpl index 42f74ff043..2009016a6a 100644 --- a/com.woltlab.wcf/templates/recaptcha.tpl +++ b/com.woltlab.wcf/templates/recaptcha.tpl @@ -1,7 +1,7 @@ {if $recaptchaLegacyMode|empty} {include file='captcha'} {else} - {if RECAPTCHA_PUBLICKEY !== '' && RECAPTCHA_PRIVATEKEY !== ''} + {if RECAPTCHA_PUBLICKEY && RECAPTCHA_PRIVATEKEY} {if $supportsAsyncCaptcha|isset && $supportsAsyncCaptcha && RECAPTCHA_PUBLICKEY_INVISIBLE && RECAPTCHA_PRIVATEKEY_INVISIBLE}

{lang}wcf.recaptcha.title{/lang}

diff --git a/wcfsetup/install/files/acp/templates/recaptcha.tpl b/wcfsetup/install/files/acp/templates/recaptcha.tpl index 42f74ff043..2009016a6a 100644 --- a/wcfsetup/install/files/acp/templates/recaptcha.tpl +++ b/wcfsetup/install/files/acp/templates/recaptcha.tpl @@ -1,7 +1,7 @@ {if $recaptchaLegacyMode|empty} {include file='captcha'} {else} - {if RECAPTCHA_PUBLICKEY !== '' && RECAPTCHA_PRIVATEKEY !== ''} + {if RECAPTCHA_PUBLICKEY && RECAPTCHA_PRIVATEKEY} {if $supportsAsyncCaptcha|isset && $supportsAsyncCaptcha && RECAPTCHA_PUBLICKEY_INVISIBLE && RECAPTCHA_PRIVATEKEY_INVISIBLE}

{lang}wcf.recaptcha.title{/lang}