From: Fabien Potencier Date: Tue, 8 Feb 2011 14:39:03 +0000 (+0100) Subject: fixed typos X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=d479a704c60096d8b71955bb9a563f0a10848d10;p=konrad%2Ftwig.git fixed typos --- diff --git a/lib/Twig/ExpressionParser.php b/lib/Twig/ExpressionParser.php index fbf927e..829481e 100644 --- a/lib/Twig/ExpressionParser.php +++ b/lib/Twig/ExpressionParser.php @@ -234,11 +234,11 @@ class Twig_ExpressionParser if ('parent' === $node->getAttribute('name')) { if (!count($this->parser->getBlockStack())) { - throw new Twig_Error_Syntax('Calling "parent" outside a block is forbidden', $token->getLine()); + throw new Twig_Error_Syntax('Calling "parent" outside a block is forbidden', $node->getLine()); } if (!$this->parser->getParent()) { - throw new Twig_Error_Syntax('Calling "parent" on a template that does not extend another one is forbidden', $token->getLine()); + throw new Twig_Error_Syntax('Calling "parent" on a template that does not extend another one is forbidden', $node->getLine()); } return new Twig_Node_Expression_Parent($this->parser->peekBlockStack(), $node->getLine());