]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
some debugging for email registration routes
authorEvan Prodromou <evan@status.net>
Sun, 17 Apr 2011 22:09:26 +0000 (18:09 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 17 Apr 2011 22:09:26 +0000 (18:09 -0400)
plugins/EmailRegistration/EmailRegistrationPlugin.php

index 306806c7d6250cfe08c1dceec7a91e3357b456d8..488380a39e5a5d138470d62c90c460f143e8b906 100644 (file)
@@ -70,8 +70,13 @@ class EmailRegistrationPlugin extends Plugin
     {
         static $toblock = array('main/register', 'main/register/:code');
 
-        if (in_array($path, $toblock) && $defaults['action'] != 'emailregister') {
-            return false;
+        if (in_array($path, $toblock)) {
+            common_debug("Request came in for $path");
+            if ($defaults['action'] != 'emailregister') {
+                common_debug("Action is {$default['action']}, so: rejected.");
+                $result = false;
+                return false;
+            }
         }
 
         return true;