mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/twig] Fix alter_block_array to correctly set S_ROW_COUNT
PHPBB3-11598
This commit is contained in:
parent
040186418a
commit
15e4b33495
1 changed files with 3 additions and 0 deletions
|
@ -322,10 +322,13 @@ class phpbb_template_context
|
||||||
for ($i = sizeof($block); $i > $key; $i--)
|
for ($i = sizeof($block); $i > $key; $i--)
|
||||||
{
|
{
|
||||||
$block[$i] = $block[$i-1];
|
$block[$i] = $block[$i-1];
|
||||||
|
|
||||||
|
$block[$i]['S_ROW_COUNT'] = $i;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Insert vararray at given position
|
// Insert vararray at given position
|
||||||
$block[$key] = $vararray;
|
$block[$key] = $vararray;
|
||||||
|
$block[$key]['S_ROW_COUNT'] = $key;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue