mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +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
|
else
|
||||||
{
|
{
|
||||||
$compiler
|
$compiler
|
||||||
->write("\$value = '")
|
->write("\$value = ")
|
||||||
->subcompile($this->getNode('value'))
|
->subcompile($this->getNode('value'))
|
||||||
->raw("';\n")
|
->raw(";\n")
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
$compiler
|
$compiler
|
||||||
->raw("\$context['definition']->set('")
|
->write("\$context['definition']->set('")
|
||||||
->raw($this->getNode('name')->getAttribute('name'))
|
->raw($this->getNode('name')->getAttribute('name'))
|
||||||
->raw("', \$value);\n")
|
->raw("', \$value);\n")
|
||||||
;
|
;
|
||||||
|
|
Loading…
Add table
Reference in a new issue