Fixes bug where invalid partial tag throws off the scent with its own problems

This commit is contained in:
Sam Georges 2014-05-15 01:31:41 +10:00
parent 2d7059aa7d
commit 64f3a87e01
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class PartialTokenParser extends Twig_TokenParser
*/
public function parse(Twig_Token $token)
{
$lineno = $token->getLine();
$stream = $this->parser->getStream();
$name = $this->parser->getExpressionParser()->parseExpression();