<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -378,7 +378,7 @@ class Twig_URL extends Twig_Node
         $compiler-&gt;raw('echo url(');
         $this-&gt;expr-&gt;compile($compiler);
 
-        if (!empty($this-&gt;cont))
+        if (!empty($this-&gt;cont) and class_exists($this-&gt;cont-&gt;name.&quot;Controller&quot;) and is_callable(array($this-&gt;cont-&gt;name.&quot;Controller&quot;, &quot;current&quot;)))
             $compiler-&gt;raw(&quot;, &quot;.$this-&gt;cont-&gt;name.&quot;Controller::current()&quot;);
 
         $compiler-&gt;raw(');'.&quot;\n&quot;);</diff>
      <filename>includes/class/Twig/ast.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8c3991e1dc9b06f4d90a880748df1b125ec6d1b7</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp-site/commit/a7be8f715ec65c43fd26e7780bc6be24958a0218</url>
  <id>a7be8f715ec65c43fd26e7780bc6be24958a0218</id>
  <committed-date>2009-07-01T12:40:30-07:00</committed-date>
  <authored-date>2009-07-01T12:40:30-07:00</authored-date>
  <message>Check URL controller is callable before spitting out potentially-crashing code.</message>
  <tree>61adac0c3c250be7d32aca8cda8f6f8170037840</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
