removed obsolete usage of setCurrentBlock() (closes #47)
authorFabien Potencier <fabien.potencier@gmail.com>
Thu, 6 May 2010 05:52:50 +0000 (07:52 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Thu, 6 May 2010 05:53:27 +0000 (07:53 +0200)
lib/Twig/TokenParser/Display.php

index ea201e8..64de493 100644 (file)
@@ -18,7 +18,6 @@ class Twig_TokenParser_Display extends Twig_TokenParser
     {
       throw new Twig_SyntaxError("The block '$name' cannot be displayed as it has not yet been defined", $lineno);
     }
-    $this->parser->setCurrentBlock($name);
     $this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE);
 
     return new Twig_Node_BlockReference($name, $lineno, $this->getTag());