From 083b1abf0d2c70c1c85ef3c5e87bc4176d575384 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 10 Dec 2020 09:45:27 +0100 Subject: [PATCH] Simplify recaptcha key checks in template Co-authored-by: Alexander Ebert --- com.woltlab.wcf/templates/recaptcha.tpl | 2 +- wcfsetup/install/files/acp/templates/recaptcha.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}

-- 2.20.1