From 31e546c5e4ecd012ef9d93fa68f42c793e417303 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 20 Jan 2007 17:58:27 +0000 Subject: - fixing some bugs - removing utf8 characters from email files (has been discussed internally, you guys know why) - making sure some opendir calls are checked before calling readdir. git-svn-id: file:///svn/phpbb/trunk@6912 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_template.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'phpBB/includes/functions_template.php') diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php index 2bbd812678..3c7259fe0a 100644 --- a/phpBB/includes/functions_template.php +++ b/phpBB/includes/functions_template.php @@ -483,6 +483,7 @@ class template_compile // Allow checking if loops are set with .loopname // It is also possible to check the loop count by doing for example $blocks = explode('.', $varrefs[1]); + // If the block is nested, we have a reference that we can grab. // If the block is not nested, we just go and grab the block from _tpldata if (sizeof($blocks) > 1) @@ -490,12 +491,14 @@ class template_compile $block = array_pop($blocks); $namespace = implode('.', $blocks); $varref = $this->generate_block_data_ref($namespace, true); + // Add the block reference for the last child. $varref .= "['" . $block . "']"; } else { $varref = '$this->_tpldata'; + // Add the block reference for the last child. $varref .= "['" . $blocks[0] . "']"; } -- cgit v1.2.1