Commit 9c979c92 by Scott

Use site language for reCAPTCHA

parent 85c48420
...@@ -120,7 +120,10 @@ class qa_recaptcha_captcha ...@@ -120,7 +120,10 @@ class qa_recaptcha_captcha
'}', '}',
); );
$qa_content['script_src'][] = 'https://www.google.com/recaptcha/api.js?onload=recaptcha_onload&render=explicit'; $lang = urlencode(qa_opt('site_language'));
if (empty($lang))
$lang = 'en';
$qa_content['script_src'][] = 'https://www.google.com/recaptcha/api.js?onload=recaptcha_onload&render=explicit&hl='.$lang;
return ''; return '';
} }
......
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