Fix URLs to reflect change in reCAPTCHA API
This commit is contained in:
parent
0df111025f
commit
bfc3cc9461
@ -71,9 +71,9 @@ class RecaptchaPlugin extends Plugin
|
|||||||
if (isset($action->recaptchaPluginNeedsOutput) && $action->recaptchaPluginNeedsOutput) {
|
if (isset($action->recaptchaPluginNeedsOutput) && $action->recaptchaPluginNeedsOutput) {
|
||||||
// Load the AJAX API
|
// Load the AJAX API
|
||||||
if (StatusNet::isHTTPS()) {
|
if (StatusNet::isHTTPS()) {
|
||||||
$url = "https://api-secure.recaptcha.net/js/recaptcha_ajax.js";
|
$url = "https://www.google.com/recaptcha/api/js/recaptcha_ajax.js";
|
||||||
} else {
|
} else {
|
||||||
$url = "http://api.recaptcha.net/js/recaptcha_ajax.js";
|
$url = "http://www.google.com/recaptcha/api/js/recaptcha_ajax.js";
|
||||||
}
|
}
|
||||||
$action->script($url);
|
$action->script($url);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user