From daadb7905b2863bf48aade7537f23a1b645d7d5d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 17 Apr 2011 18:19:47 -0400 Subject: [PATCH] additional debugging in router --- plugins/EmailRegistration/EmailRegistrationPlugin.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/EmailRegistration/EmailRegistrationPlugin.php b/plugins/EmailRegistration/EmailRegistrationPlugin.php index 3305fed6db..44bd95e7b0 100644 --- a/plugins/EmailRegistration/EmailRegistrationPlugin.php +++ b/plugins/EmailRegistration/EmailRegistrationPlugin.php @@ -82,6 +82,15 @@ class EmailRegistrationPlugin extends Plugin return true; } + function onEndConnectPath($path, $defaults, $rules, $result) + { + static $toblock = array('main/register', 'main/register/:code'); + + if (in_array($path, $toblock) && $defaults['action'] == 'emailregister') { + common_debug("for email register got " . print_r($result, true)); + } + } + function onStartInitializeRouter($m) { $m->connect('main/register', array('action' => 'emailregister')); -- 2.39.5