]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Recaptcha/RecaptchaPlugin.php
Fixed more type-hints for safety.
[quix0rs-gnu-social.git] / plugins / Recaptcha / RecaptchaPlugin.php
index 48754ffab4309045b395cf3e56113835a86a49d1..13709e23ab7cb769a7d57f80ba316022b3378ed3 100644 (file)
@@ -67,7 +67,7 @@ class RecaptchaPlugin extends Plugin
         return true;
     }
 
-    function onEndShowScripts($action)
+    function onEndShowScripts(Action $action)
     {
         if (isset($action->recaptchaPluginNeedsOutput) && $action->recaptchaPluginNeedsOutput) {
             // Load the AJAX API
@@ -85,7 +85,7 @@ class RecaptchaPlugin extends Plugin
         return true;
     }
 
-    function onStartRegistrationTry($action)
+    function onStartRegistrationTry(Action $action)
     {
         $resp = recaptcha_check_answer ($this->private_key,
                                         $_SERVER["REMOTE_ADDR"],