]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
additional debugging in router
authorEvan Prodromou <evan@status.net>
Sun, 17 Apr 2011 22:19:47 +0000 (18:19 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 17 Apr 2011 22:19:47 +0000 (18:19 -0400)
plugins/EmailRegistration/EmailRegistrationPlugin.php

index 3305fed6db61639b84d3648c4cadfe8cf17773f3..44bd95e7b08373bfc39da32fc90c86f05b52b9cd 100644 (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'));