]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "some debugging for email registration routes"
authorEvan Prodromou <evan@status.net>
Sun, 17 Apr 2011 22:22:59 +0000 (18:22 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 17 Apr 2011 22:22:59 +0000 (18:22 -0400)
This reverts commit 165d9fd9dea881e4fd7c6df0fa033b3de6c29764.

plugins/EmailRegistration/EmailRegistrationPlugin.php

index d1d5d71a5e026077a13609b652c8305b484e1089..3d868da69f58582b7f7cca1340b9744db1fb90de 100644 (file)
@@ -70,13 +70,8 @@ class EmailRegistrationPlugin extends Plugin
     {
         static $toblock = array('main/register', 'main/register/:code');
 
-        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;
-            }
+        if (in_array($path, $toblock) && $defaults['action'] != 'emailregister') {
+            return false;
         }
 
         return true;