From: Evan Prodromou Date: Sun, 17 Apr 2011 22:22:59 +0000 (-0400) Subject: Revert "some debugging for email registration routes" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=064ed69446a00773ee2c3f49391905332def1550;p=quix0rs-gnu-social.git Revert "some debugging for email registration routes" This reverts commit 165d9fd9dea881e4fd7c6df0fa033b3de6c29764. --- diff --git a/plugins/EmailRegistration/EmailRegistrationPlugin.php b/plugins/EmailRegistration/EmailRegistrationPlugin.php index d1d5d71a5e..3d868da69f 100644 --- a/plugins/EmailRegistration/EmailRegistrationPlugin.php +++ b/plugins/EmailRegistration/EmailRegistrationPlugin.php @@ -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;