Skip to content

Commit

Permalink
[TwigBundle] fixed trans tag
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Sep 29, 2010
1 parent 7b9a523 commit 6dc6d4a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -50,7 +50,7 @@ public function parse(\Twig_Token $token)
$stream->expect(\Twig_Token::BLOCK_END_TYPE);
$body = $this->parser->subparse(array($this, 'decideTransFork'), true);
}
} else {
} elseif (!$stream->test(\Twig_Token::BLOCK_END_TYPE)) {
throw new \Twig_SyntaxError(sprintf('Unexpected token. Twig was looking for the "from" keyword line %s)', $lineno), -1);
}
} else {
Expand Down

0 comments on commit 6dc6d4a

Please sign in to comment.