some debugging for email registration routes

This commit is contained in:
Evan Prodromou 2011-04-17 18:09:26 -04:00
parent 7cc4c97aa9
commit 165d9fd9de

View File

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