Skip to content

Commit 9716d30

Browse files
Soskomichalsn
andauthored
Update system/Honeypot/Honeypot.php
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
1 parent 4fa3424 commit 9716d30

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

system/Honeypot/Honeypot.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,7 @@ protected function prepareTemplate(string $template): string
134134

135135
if ($this->config->hidden)
136136
{
137-
if(substr_count($this->config->hiddenContainer, "%") != 2)
138-
{
139-
$this->config->hiddenContainer = '<div %s>%s</div>';
140-
}
141-
$template = sprintf($this->config->hiddenContainer,
142-
($this->config->hiddenByClass ? (sprintf('class="%s"', $this->config->hiddenByClass)) : (sprintf('style="%s"', 'display:none'))),
143-
$template);
137+
$template = sprintf($this->config->container, $template);
144138
}
145139
return $template;
146140
}

0 commit comments

Comments
 (0)