forked from leftypol/leftypol
upgrade twig library
This commit is contained in:
parent
01857d176a
commit
9c48084f3b
163 changed files with 275 additions and 94 deletions
2
inc/lib/Twig/TokenParser/From.php
Normal file → Executable file
2
inc/lib/Twig/TokenParser/From.php
Normal file → Executable file
|
@ -56,7 +56,7 @@ class Twig_TokenParser_From extends Twig_TokenParser
|
|||
$node = new Twig_Node_Import($macro, new Twig_Node_Expression_AssignName($this->parser->getVarName(), $token->getLine()), $token->getLine(), $this->getTag());
|
||||
|
||||
foreach ($targets as $name => $alias) {
|
||||
$this->parser->addImportedSymbol('function', $alias, 'get'.$name, $node->getNode('var'));
|
||||
$this->parser->addImportedSymbol('macro', $alias, $name, $node->getNode('var'));
|
||||
}
|
||||
|
||||
return $node;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue