aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template/context.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/template/context.php')
-rw-r--r--phpBB/includes/template/context.php4
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]);
}
}