fixed typo
authorFabien Potencier <fabien.potencier@gmail.com>
Sat, 23 Oct 2010 08:38:18 +0000 (10:38 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Sat, 23 Oct 2010 08:38:18 +0000 (10:38 +0200)
lib/Twig/TokenParser/Trans.php

index f2fbc51..f520c25 100644 (file)
@@ -69,7 +69,7 @@ class Twig_TokenParser_Trans extends Twig_TokenParser
             if (
                 $node instanceof Twig_Node_Text
                 ||
-                ($node instanceof Twig_Node_Print && $node->expr instanceof Twig_Node_Expression_Name)
+                ($node instanceof Twig_Node_Print && $node->getNode('expr') instanceof Twig_Node_Expression_Name)
             ) {
                 continue;
             }