Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/CleantalkAntispam.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ private function setEmailAutomatically()
public static function getFrontendHTMLCode($warn_if_js_disabled = false)
{
$warn = $warn_if_js_disabled ? '<noscript><div>Please, enable JavaScript in the browser to process the form</div></noscript>' : '';
$url = static::BOT_DETECTOR_LIBRARY_URL . '?ver=' . gmdate('Ymd');
Comment thread
Glomberg marked this conversation as resolved.
Outdated
Comment thread
Glomberg marked this conversation as resolved.
Outdated
$html = '<script src="%s"></script>%s';
return sprintf($html, static::BOT_DETECTOR_LIBRARY_URL, $warn);
return sprintf($html, $url, $warn);
Comment thread
Glomberg marked this conversation as resolved.
}

/**
Expand Down
Loading