1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 15:01:33 +02:00

[ticket/11701] Loop variables are not passed correctly to events

PHPBB3-11701
This commit is contained in:
Nathaniel Guse
2013-07-14 12:10:49 -05:00
committed by Nathan Guse
parent 7d8e80241c
commit 6b0b0f2a9f
2 changed files with 7 additions and 7 deletions

View File

@@ -429,15 +429,15 @@ class phpbb_template_twig implements phpbb_template
$vars = array_merge(
$context_vars['.'][0], // To get normal vars
$context_vars, // To get loops
array(
'definition' => new phpbb_template_twig_definition(),
'user' => $this->user,
'loops' => $context_vars, // To get loops
)
);
// cleanup
unset($vars['.']);
unset($vars['loops']['.']);
return $vars;
}