From a57804d20423e59665be816b70452a162624ee83 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 23 Jan 2012 10:19:16 +0100 Subject: [PATCH] fixed typo --- 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 8cf91d8..0f35930 100644 --- a/lib/Twig/ExpressionParser.php +++ b/lib/Twig/ExpressionParser.php @@ -469,7 +469,7 @@ class Twig_ExpressionParser protected function getFunctionNodeClass($name) { $functionMap = $this->parser->getEnvironment()->getFunctions(); - if (isset($functionMap[$name]) && $functionMap[$name] instanceof Twig_Filter_Node) { + if (isset($functionMap[$name]) && $functionMap[$name] instanceof Twig_Function_Node) { return $functionMap[$name]->getClass(); } -- 1.7.2.5