From: Evan Prodromou Date: Sun, 17 Apr 2011 22:09:26 +0000 (-0400) Subject: some debugging for email registration routes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=165d9fd9dea881e4fd7c6df0fa033b3de6c29764;p=quix0rs-gnu-social.git some debugging for email registration routes --- diff --git a/plugins/EmailRegistration/EmailRegistrationPlugin.php b/plugins/EmailRegistration/EmailRegistrationPlugin.php index 306806c7d6..488380a39e 100644 --- a/plugins/EmailRegistration/EmailRegistrationPlugin.php +++ b/plugins/EmailRegistration/EmailRegistrationPlugin.php @@ -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;