From: Evan Prodromou Date: Sun, 17 Apr 2011 22:19:47 +0000 (-0400) Subject: additional debugging in router X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=daadb7905b2863bf48aade7537f23a1b645d7d5d;p=quix0rs-gnu-social.git additional debugging in router --- 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'));