<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -95,7 +95,7 @@
                 else
                     $call = false;
 
-                if (method_exists($this-&gt;controller, $method))
+                if ($call === false and method_exists($this-&gt;controller, $method))
                     $response = call_user_func_array(array($this-&gt;controller, $method), $args);
                 else
                     $response = false;</diff>
      <filename>includes/class/Route.php</filename>
    </modified>
    <modified>
      <diff>@@ -40,7 +40,7 @@
                     $args = func_get_args();
                     $args[0] = $call;
                     if ($index + 1 == count($name))
-                        return $return = $this-&gt;exists($call) ? call_user_func_array(array($this, &quot;call&quot;), $args) : $return ;
+                        return $return == $this-&gt;exists($call) ? call_user_func_array(array($this, &quot;call&quot;), $args) : $return ;
                     else
                         $return = $this-&gt;exists($call) ? call_user_func_array(array($this, &quot;call&quot;), $args) : $return ;
                 }</diff>
      <filename>includes/class/Trigger.php</filename>
    </modified>
    <modified>
      <diff>@@ -479,7 +479,9 @@
                     Flash::warning(__(&quot;Invalid e-mail address.&quot;));
 
                 if (!Flash::exists(&quot;warning&quot;)) {
-                    User::add($_POST['login'], $_POST['password1'], $_POST['email']);
+                    $user = User::add($_POST['login'], $_POST['password1'], $_POST['email']);
+
+                    Trigger::current()-&gt;call(&quot;user_registered&quot;, $user);
 
                     $_SESSION['login'] = $_POST['login'];
                     $_SESSION['password'] = md5($_POST['password1']);</diff>
      <filename>includes/controller/Main.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2ff3d3bcccd006579e6ad18d584f726ec20f3099</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp/commit/7e8768b454fb3d5cf8cda1813524c80002b3584c</url>
  <id>7e8768b454fb3d5cf8cda1813524c80002b3584c</id>
  <committed-date>2008-11-18T12:41:57-08:00</committed-date>
  <authored-date>2008-11-18T12:41:57-08:00</authored-date>
  <message>* If a Route call is successful, the original Controller method will be ignored.
* Fixed a rogue = instead of == in Trigger.php.
* Added a &quot;user_registered&quot; trigger that passes the new user as the arg.</message>
  <tree>761bf8b8d0a8a059522fd50ee294971ef477e071</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
