From 9812228cbca040d7a8578ac140dd5e0678824b25 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Mon, 19 Jun 2023 22:35:34 +0900 Subject: [PATCH] Rename class for Turnstile config --- modules/spamfilter/captcha/turnstile.php | 2 +- modules/spamfilter/tpl/js/turnstile.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/spamfilter/captcha/turnstile.php b/modules/spamfilter/captcha/turnstile.php index 6309041b4..41610705b 100644 --- a/modules/spamfilter/captcha/turnstile.php +++ b/modules/spamfilter/captcha/turnstile.php @@ -58,7 +58,7 @@ class Turnstile self::$scripts_added = true; Context::loadFile(array('./modules/spamfilter/tpl/js/turnstile.js', 'body')); Context::addHtmlFooter(''); - $html = '
'; + $html = '
'; $html = sprintf($html, escape(self::$config->site_key), self::$config->theme ?: 'auto', self::$config->size ?: 'normal', implode(',', array_keys($this->_target_actions))); Context::addHtmlFooter($html); } diff --git a/modules/spamfilter/tpl/js/turnstile.js b/modules/spamfilter/tpl/js/turnstile.js index 655911ceb..39a7d4fbf 100644 --- a/modules/spamfilter/tpl/js/turnstile.js +++ b/modules/spamfilter/tpl/js/turnstile.js @@ -1,6 +1,6 @@ function turnstileCallback() { - var recaptcha_config = $("#recaptcha-config"); + var recaptcha_config = $("#turnstile-config"); var recaptcha_instances = $(".turnstile-captcha"); var recaptcha_instance_id = 1; var recaptcha_targets = String(recaptcha_config.data("targets")).split(",");