diff options
| author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-06-26 09:09:11 -0500 |
|---|---|---|
| committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-06-26 09:09:11 -0500 |
| commit | 15e4b334955cd841fe94cb0d4b6753cc8c9f6967 (patch) | |
| tree | 82d5accd871367433afe914d8213a82f561e881c /phpBB/includes | |
| parent | 040186418aa15d1de4a99b81cf05ee74ef94e042 (diff) | |
| download | forums-15e4b334955cd841fe94cb0d4b6753cc8c9f6967.tar forums-15e4b334955cd841fe94cb0d4b6753cc8c9f6967.tar.gz forums-15e4b334955cd841fe94cb0d4b6753cc8c9f6967.tar.bz2 forums-15e4b334955cd841fe94cb0d4b6753cc8c9f6967.tar.xz forums-15e4b334955cd841fe94cb0d4b6753cc8c9f6967.zip | |
[feature/twig] Fix alter_block_array to correctly set S_ROW_COUNT
PHPBB3-11598
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/template/context.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/template/context.php b/phpBB/includes/template/context.php index 3abab4f31b..98b870adec 100644 --- a/phpBB/includes/template/context.php +++ b/phpBB/includes/template/context.php @@ -322,10 +322,13 @@ class phpbb_template_context for ($i = sizeof($block); $i > $key; $i--) { $block[$i] = $block[$i-1]; + + $block[$i]['S_ROW_COUNT'] = $i; } // Insert vararray at given position $block[$key] = $vararray; + $block[$key]['S_ROW_COUNT'] = $key; return true; } |
