]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix URLs to reflect change in reCAPTCHA API
authorZach Copley <zach@status.net>
Wed, 27 Apr 2011 19:40:43 +0000 (19:40 +0000)
committerZach Copley <zach@status.net>
Wed, 27 Apr 2011 19:40:43 +0000 (19:40 +0000)
plugins/Recaptcha/RecaptchaPlugin.php

index 0c46a33e0b0cea702326c436fce4283bf8525cad..4e28e850ccd3d37b3e44a96aed5a7ea77f933aaa 100644 (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);