From d479a704c60096d8b71955bb9a563f0a10848d10 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 8 Feb 2011 15:39:03 +0100 Subject: [PATCH] fixed typos --- lib/Twig/ExpressionParser.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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()); -- 1.7.2.5