mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
- fix the template error (no headers displayed, wrong ! assignment, wrong check for .loop)
git-svn-id: file:///svn/phpbb/trunk@5766 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -259,7 +259,8 @@ class template_compile
|
||||
|
||||
if (strpos($tag_args, '!') === 0)
|
||||
{
|
||||
$no_nesting = substr_count($tag_args, '!', 0, strrpos($tag_args, '!') + 1);
|
||||
// Count the number if ! occurrences (not allowed in vars)
|
||||
$no_nesting = substr_count($tag_args, '!');
|
||||
$tag_args = substr($tag_args, $no_nesting);
|
||||
}
|
||||
|
||||
@@ -450,7 +451,7 @@ class template_compile
|
||||
{
|
||||
$token = (!empty($varrefs[1])) ? $this->generate_block_data_ref(substr($varrefs[1], 0, -1), true, $varrefs[2]) . '[\'' . $varrefs[3] . '\']' : (($varrefs[2]) ? '$this->_tpldata[\'DEFINE\'][\'.\'][\'' . $varrefs[3] . '\']' : '$this->_tpldata[\'.\'][0][\'' . $varrefs[3] . '\']');
|
||||
}
|
||||
else if (preg_match('#^\.([a-z0-9\-_]+\.?)+$#s', $token, $varrefs))
|
||||
else if (preg_match('#^\.(([a-z0-9\-_]+\.?)+)$#s', $token, $varrefs))
|
||||
{
|
||||
$_tok = $this->generate_block_data_ref($varrefs[1], false);
|
||||
$token = "(isset($_tok) && sizeof($_tok))";
|
||||
|
Reference in New Issue
Block a user