From 165d9fd9dea881e4fd7c6df0fa033b3de6c29764 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 17 Apr 2011 18:09:26 -0400 Subject: [PATCH] some debugging for email registration routes --- plugins/EmailRegistration/EmailRegistrationPlugin.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; -- 2.39.5