1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-15 14:16:28 +02:00

[feature/twig] Add S_NUM_ROWS to loops in context

PHPBB3-11598
This commit is contained in:
Nathaniel Guse
2013-06-29 19:22:58 -05:00
parent 82aa4edeab
commit c477f865fb

View File

@ -178,6 +178,11 @@ class phpbb_template_context
// We're adding a new iteration to this block with the given
// variable assignments.
$str[$blocks[$blockcount]][] = $vararray;
foreach ($str[$blocks[$blockcount]] as &$mod_block)
{
$mod_block['S_NUM_ROWS'] = $blockcount;
}
}
else
{