From 8b0d71fb339a8ae3433fa69cdf10baaad8254447 Mon Sep 17 00:00:00 2001 From: nikic <+@ni-po.com> Date: Tue, 8 Feb 2011 21:39:32 +0100 Subject: [PATCH] swap GetAttr constructor arguments for from .. import macros --- lib/Twig/ExpressionParser.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/ExpressionParser.php b/lib/Twig/ExpressionParser.php index 829481e..0bf3d8a 100644 --- a/lib/Twig/ExpressionParser.php +++ b/lib/Twig/ExpressionParser.php @@ -249,7 +249,7 @@ class Twig_ExpressionParser } if (null !== $alias = $this->parser->getImportedFunction($node->getAttribute('name'))) { - return new Twig_Node_Expression_GetAttr($alias['node'], new Twig_Node_Expression_Constant($alias['name'], $node->getLine()), $args, $node->getLine(), Twig_TemplateInterface::METHOD_CALL); + return new Twig_Node_Expression_GetAttr($alias['node'], new Twig_Node_Expression_Constant($alias['name'], $node->getLine()), $args, Twig_TemplateInterface::METHOD_CALL, $node->getLine()); } return new Twig_Node_Expression_Function($node, $args, $node->getLine()); -- 1.7.2.5