Project

General

Profile

« Previous | Next » 

Revision 1938

Added by darkviper almost 11 years ago

update Twig template engine to version 1.13.1

View differences:

ExpressionParser.php
18 18
 * @see http://www.engr.mun.ca/~theo/Misc/exp_parsing.htm
19 19
 * @see http://en.wikipedia.org/wiki/Operator-precedence_parser
20 20
 *
21
 * @package    twig
22
 * @author     Fabien Potencier <fabien@symfony.com>
21
 * @author Fabien Potencier <fabien@symfony.com>
23 22
 */
24 23
class Twig_ExpressionParser
25 24
{
......
366 365
                throw new Twig_Error_Syntax('Expected name or number', $lineno, $this->parser->getFilename());
367 366
            }
368 367

  
369
            if ($node instanceof Twig_Node_Expression_Name && null !== $alias = $this->parser->getImportedSymbol('template', $node->getAttribute('name'))) {
368
            if ($node instanceof Twig_Node_Expression_Name && null !== $this->parser->getImportedSymbol('template', $node->getAttribute('name'))) {
370 369
                if (!$arg instanceof Twig_Node_Expression_Constant) {
371 370
                    throw new Twig_Error_Syntax(sprintf('Dynamic macro names are not supported (called on "%s")', $node->getAttribute('name')), $token->getLine(), $this->parser->getFilename());
372 371
                }

Also available in: Unified diff