aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template/context.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/template/context.php')
-rw-r--r--phpBB/phpbb/template/context.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/phpbb/template/context.php b/phpBB/phpbb/template/context.php
index 8bf6c10e2d..f0bc4c859a 100644
--- a/phpBB/phpbb/template/context.php
+++ b/phpBB/phpbb/template/context.php
@@ -325,11 +325,13 @@ class context
}
$block = &$block[$blocks[$i]]; // Traverse the last block
+ $name = $blocks[$i];
}
else
{
// Top-level block.
$block = &$this->tpldata[$blockname];
+ $name = $blockname;
}
// Change key to zero (change first position) if false and to last position if true
@@ -378,7 +380,7 @@ class context
}
// Assign S_BLOCK_NAME
- $vararray['S_BLOCK_NAME'] = $blockname;
+ $vararray['S_BLOCK_NAME'] = $name;
// Re-position template blocks
for ($i = sizeof($block); $i > $key; $i--)