additional debugging in router

This commit is contained in:
Evan Prodromou 2011-04-17 18:19:47 -04:00
parent 35361656d5
commit daadb7905b

View File

@ -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'));