Commit 6deffdfa authored by nkoth's avatar nkoth

[ENH] Translate Recaptcha version 2

parent 1ec87538
......@@ -247,7 +247,11 @@ if ($prefs['feature_wysiwyg'] == 'y') {
if ($prefs['feature_antibot'] == 'y' && empty($user)) {
if ($prefs['recaptcha_enabled'] === 'y') {
if ($prefs['recaptcha_version'] == '2') {
$headerlib->add_jsfile_cdn("$url_scheme://www.google.com/recaptcha/api.js");
if (!empty($prefs['language'])) {
$headerlib->add_jsfile_cdn("$url_scheme://www.google.com/recaptcha/api.js?hl=" . $prefs['language']);
} else {
$headerlib->add_jsfile_cdn("$url_scheme://www.google.com/recaptcha/api.js");
}
} else {
$headerlib->add_jsfile_cdn("$url_scheme://www.google.com/recaptcha/api/js/recaptcha_ajax.js");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment