mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-16 14:46:28 +02:00
[feature/twig] Add S_NUM_ROWS to loops in context
PHPBB3-11598
This commit is contained in:
@ -178,6 +178,11 @@ class phpbb_template_context
|
|||||||
// We're adding a new iteration to this block with the given
|
// We're adding a new iteration to this block with the given
|
||||||
// variable assignments.
|
// variable assignments.
|
||||||
$str[$blocks[$blockcount]][] = $vararray;
|
$str[$blocks[$blockcount]][] = $vararray;
|
||||||
|
|
||||||
|
foreach ($str[$blocks[$blockcount]] as &$mod_block)
|
||||||
|
{
|
||||||
|
$mod_block['S_NUM_ROWS'] = $blockcount;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user