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
0
inc/lib/Twig/TokenParser/AutoEscape.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/AutoEscape.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Block.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Block.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Do.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Do.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Embed.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Embed.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Extends.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Extends.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Filter.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Filter.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Flush.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Flush.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/For.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/For.php
Normal file → Executable file
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;
|
||||
|
|
0
inc/lib/Twig/TokenParser/If.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/If.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Import.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Import.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Include.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Include.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Macro.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Macro.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Sandbox.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Sandbox.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Set.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Set.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Spaceless.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Spaceless.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Use.php
Normal file → Executable file
0
inc/lib/Twig/TokenParser/Use.php
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue