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:
committed by
Nathan Guse
parent
7d8e80241c
commit
6b0b0f2a9f
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user