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