We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 162fab1 commit c88c017Copy full SHA for c88c017
1 file changed
system/Honeypot/Honeypot.php
@@ -72,6 +72,10 @@ function __construct(BaseConfig $config)
72
{
73
throw HoneypotException::forNoHiddenValue();
74
}
75
+ if ($this->config->hiddenBy === '')
76
+ {
77
+ throw HoneypotException::forNoHiddenValue();
78
+ }
79
80
if ($this->config->template === '')
81
@@ -124,7 +128,7 @@ protected function prepareTemplate(string $template): string
124
128
125
129
if ($this->config->hidden)
126
130
127
- $template = '<div style="display:none" class="hidden d-none">' . $template . '</div>';
131
+ $template = '<div ' . $this->config->hiddenBy . '>' . $template . '</div>';
132
133
return $template;
134
0 commit comments