From: Tobias Naumann Date: Thu, 26 May 2011 15:00:59 +0000 (+0200) Subject: Moved default filter fix to its proper place X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=703a822da91edce7c1f7b8d62f107c8af1a9f369;p=web%2Fkonrad%2Ftwig.git Moved default filter fix to its proper place --- 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(') : (');