mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-15 06:06:32 +02:00
[feature/twig] Fixing define node
PHPBB3-11598
This commit is contained in:
@ -34,14 +34,14 @@ class phpbb_template_twig_node_define extends Twig_Node
|
||||
else
|
||||
{
|
||||
$compiler
|
||||
->write("\$value = '")
|
||||
->write("\$value = ")
|
||||
->subcompile($this->getNode('value'))
|
||||
->raw("';\n")
|
||||
->raw(";\n")
|
||||
;
|
||||
}
|
||||
|
||||
$compiler
|
||||
->raw("\$context['definition']->set('")
|
||||
->write("\$context['definition']->set('")
|
||||
->raw($this->getNode('name')->getAttribute('name'))
|
||||
->raw("', \$value);\n")
|
||||
;
|
||||
|
Reference in New Issue
Block a user