From 703a822da91edce7c1f7b8d62f107c8af1a9f369 Mon Sep 17 00:00:00 2001 From: Tobias Naumann Date: Thu, 26 May 2011 17:00:59 +0200 Subject: [PATCH] Moved default filter fix to its proper place --- lib/Twig/Node/Expression/Filter.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/Node/Expression/Filter.php b/lib/Twig/Node/Expression/Filter.php index a1a97d1..1632778 100644 --- a/lib/Twig/Node/Expression/Filter.php +++ b/lib/Twig/Node/Expression/Filter.php @@ -38,9 +38,9 @@ class Twig_Node_Expression_Filter extends Twig_Node_Expression } elseif ($this->getNode('node') instanceof Twig_Node_Expression_GetAttr) { $this->getNode('node')->setAttribute('is_defined_test', true); $compiler->subcompile($this->getNode('node')); + $this->getNode('node')->removeAttribute('is_defined_test'); } - $this->getNode('node')->removeAttribute('is_defined_test'); $compiler->raw(') ? ('); $this->compileFilter($compiler, $filter); $compiler->raw(') : ('); -- 1.7.2.5