diff options
author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-01 13:26:00 -0500 |
---|---|---|
committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-01 13:26:00 -0500 |
commit | 2d9bbe0ef218f56565d70a0e197ba91a80ea378b (patch) | |
tree | 05b26f9bb1fcbcfb0246ab9a86a866f22786df44 | |
parent | 3060cbe089fcb99ee3e7d66fe5b0e4bce171a88a (diff) | |
download | forums-2d9bbe0ef218f56565d70a0e197ba91a80ea378b.tar forums-2d9bbe0ef218f56565d70a0e197ba91a80ea378b.tar.gz forums-2d9bbe0ef218f56565d70a0e197ba91a80ea378b.tar.bz2 forums-2d9bbe0ef218f56565d70a0e197ba91a80ea378b.tar.xz forums-2d9bbe0ef218f56565d70a0e197ba91a80ea378b.zip |
[feature/twig] Fix template/context.php
PHPBB3-11598
-rw-r--r-- | phpBB/includes/template/context.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/template/context.php b/phpBB/includes/template/context.php index 8585e7d794..e3ad6be46c 100644 --- a/phpBB/includes/template/context.php +++ b/phpBB/includes/template/context.php @@ -181,7 +181,7 @@ class phpbb_template_context } // Assign S_BLOCK_NAME - $vararray['S_BLOCK_NAME'] = $blocks[$blockcount]; + $vararray['S_BLOCK_NAME'] = $blockname; // We always assign S_LAST_ROW and remove the entry before $vararray['S_LAST_ROW'] = true; @@ -196,7 +196,7 @@ class phpbb_template_context // Set S_NUM_ROWS foreach ($this->tpldata[$blockname] as &$mod_block) { - $mod_block['S_NUM_ROWS'] = $blockcount; + $mod_block['S_NUM_ROWS'] = sizeof($this->tpldata[$blockname]); } } |