mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[feature/twig] Fixing define node
PHPBB3-11598
This commit is contained in:
parent
2c55671767
commit
ecdc73a81a
1 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
;
|
||||
|
|
Loading…
Add table
Reference in a new issue