Fix URLs to reflect change in reCAPTCHA API

This commit is contained in:
Zach Copley 2011-04-27 19:40:43 +00:00
parent afd92957b4
commit 83397e28b8
1 changed files with 3 additions and 3 deletions

View File

@ -77,10 +77,10 @@ class RecaptchaPlugin extends Plugin
{
if (isset($action->recaptchaPluginNeedsOutput) && $action->recaptchaPluginNeedsOutput) {
// Load the AJAX API
if ($this->checkssl()) {
$url = "https://api-secure.recaptcha.net/js/recaptcha_ajax.js";
if (StatusNet::isHTTPS()) {
$url = "https://www.google.com/recaptcha/api/js/recaptcha_ajax.js";
} else {
$url = "http://api.recaptcha.net/js/recaptcha_ajax.js";
$url = "http://www.google.com/recaptcha/api/js/recaptcha_ajax.js";
}
$action->script($url);