Project

General

Profile

« Previous | Next » 

Revision 1852

Added by darkviper over 11 years ago

updated Twig template engine to stable version 1.11.1 step2

View differences:

From.php
55 55

  
56 56
        $node = new Twig_Node_Import($macro, new Twig_Node_Expression_AssignName($this->parser->getVarName(), $token->getLine()), $token->getLine(), $this->getTag());
57 57

  
58
        foreach($targets as $name => $alias) {
59
            $this->parser->addImportedFunction($alias, 'get'.$name, $node->getNode('var'));
58
        foreach ($targets as $name => $alias) {
59
            $this->parser->addImportedSymbol('function', $alias, 'get'.$name, $node->getNode('var'));
60 60
        }
61 61

  
62 62
        return $node;

Also available in: Unified diff