1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 09:20:58 +01:00

Merge pull request #805 from perdedora/fix-oversights

Fix oversights
This commit is contained in:
Lorenzo Yario 2024-09-17 21:01:53 -07:00 committed by GitHub
commit 2b3eae89f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 6 deletions

View File

@ -40,7 +40,8 @@
"inc/functions/theme.php",
"inc/driver/http-driver.php",
"inc/driver/log-driver.php",
"inc/service/captcha-queries.php"
"inc/service/captcha-queries.php",
"inc/context.php"
]
},
"license": "Tinyboard + vichan",

View File

@ -222,7 +222,7 @@ function getCookie(cookie_name) {
}
}
{% endraw %}
{% endverbatim %}
{% if config.captcha.dynamic %}
function is_dynamic_captcha_enabled() {
let cookie = get_cookie('require-captcha');
@ -230,7 +230,7 @@ function is_dynamic_captcha_enabled() {
}
function get_captcha_pub_key() {
{% if config.captcha.provider === 'recaptcha' %}
{% if config.captcha.provider == 'recaptcha' %}
return "{{ config.captcha.recaptcha.sitekey }}";
{% else %}
return null;
@ -250,7 +250,7 @@ function init_dynamic_captcha() {
}
}
{% endif %}
{% raw %}
{% verbatim %}
function highlightReply(id) {
if (typeof window.event != "undefined" && event.which == 2) {

View File

@ -100,7 +100,7 @@
</td>
</tr>
{% endif %}
{% if config.captcha.enabled %}
{% if config.captcha.provider == 'native' %}
<tr class='captcha'>
<th>
{% trans %}Verification{% endtrans %}
@ -115,7 +115,7 @@
</noscript>
</td>
</tr>
{% elseif config.new_thread_capt %}
{% elseif config.captcha.native.new_thread_capt %}
{% if not id %}
<tr class='captcha'>
<th>