aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-06-29 19:22:58 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-06-29 19:22:58 -0500
commitc477f865fbab2ecc1cd13302f44d62b36af14c73 (patch)
tree98e994a6190f74ab7e6da9456ca631810ff23a75 /phpBB/includes
parent82aa4edeabe1c0f3c01f6c4a23035470a89e3f1f (diff)
downloadforums-c477f865fbab2ecc1cd13302f44d62b36af14c73.tar
forums-c477f865fbab2ecc1cd13302f44d62b36af14c73.tar.gz
forums-c477f865fbab2ecc1cd13302f44d62b36af14c73.tar.bz2
forums-c477f865fbab2ecc1cd13302f44d62b36af14c73.tar.xz
forums-c477f865fbab2ecc1cd13302f44d62b36af14c73.zip
[feature/twig] Add S_NUM_ROWS to loops in context
PHPBB3-11598
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/template/context.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/template/context.php b/phpBB/includes/template/context.php
index 9826f5e5f5..4689cf2d77 100644
--- a/phpBB/includes/template/context.php
+++ b/phpBB/includes/template/context.php
@@ -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
{