From afc9821f1bfc7d147112323f85991b8d86fedbf3 Mon Sep 17 00:00:00 2001 From: Benny Born Date: Wed, 26 Feb 2020 19:00:09 +0100 Subject: [PATCH] fixes #11 --- src/Resources/contao/dca/tl_form_field.php | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/Resources/contao/dca/tl_form_field.php b/src/Resources/contao/dca/tl_form_field.php index b0a38f1..ff8f9e2 100755 --- a/src/Resources/contao/dca/tl_form_field.php +++ b/src/Resources/contao/dca/tl_form_field.php @@ -1,7 +1,20 @@ [ + 'recaptcha3_threshold' => [ 'label' => &$GLOBALS['TL_LANG']['tl_form_field']['recaptcha3_threshold'], 'inputType' => 'text', 'sql' => "varchar(8) NOT NULL default ''", @@ -13,8 +26,4 @@ 'sql' => "varchar(120) NOT NULL default ''", 'eval' => ['tl_class' => 'w50', 'rgxp' => 'recaptcha'] ], -]; - -if (Config::get('recaptchaType') != 'recaptcha3') return; - -$GLOBALS['TL_DCA']['tl_form_field']['palettes']['captcha'] = str_replace(',type,label', ',type,label,recaptcha3_threshold,recaptcha3_action', $GLOBALS['TL_DCA']['tl_form_field']['palettes']['captcha']); +]; \ No newline at end of file