aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template/twig/twig.php
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-07-14 12:10:49 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2013-07-23 09:25:57 -0500
commit6b0b0f2a9fdd2e2169534756e9ceb4421125c7ea (patch)
tree6156555a89576172194fae0833c5a2201acdfdbe /phpBB/phpbb/template/twig/twig.php
parent7d8e80241c43fa7d0ade4afa2f56d7eb1aa32989 (diff)
downloadforums-6b0b0f2a9fdd2e2169534756e9ceb4421125c7ea.tar
forums-6b0b0f2a9fdd2e2169534756e9ceb4421125c7ea.tar.gz
forums-6b0b0f2a9fdd2e2169534756e9ceb4421125c7ea.tar.bz2
forums-6b0b0f2a9fdd2e2169534756e9ceb4421125c7ea.tar.xz
forums-6b0b0f2a9fdd2e2169534756e9ceb4421125c7ea.zip
[ticket/11701] Loop variables are not passed correctly to events
PHPBB3-11701
Diffstat (limited to 'phpBB/phpbb/template/twig/twig.php')
-rw-r--r--phpBB/phpbb/template/twig/twig.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/template/twig/twig.php b/phpBB/phpbb/template/twig/twig.php
index 92a37d1634..6cff1bb8e4 100644
--- a/phpBB/phpbb/template/twig/twig.php
+++ b/phpBB/phpbb/template/twig/twig.php
@@ -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;
}