mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
allow checking for loops with IF .block_var
git-svn-id: file:///svn/phpbb/trunk@5271 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
0513ef4d17
commit
719763dec2
1 changed files with 5 additions and 0 deletions
|
@ -821,6 +821,11 @@ class template
|
|||
{
|
||||
$token = (!empty($varrefs[1])) ? $this->generate_block_data_ref(substr($varrefs[1], 0, -1), true, $varrefs[3]) . '[\'' . $varrefs[4] . '\']' : (($varrefs[3]) ? '$this->_tpldata[\'DEFINE\'][\'.\'][\'' . $varrefs[4] . '\']' : '$this->_tpldata[\'.\'][0][\'' . $varrefs[4] . '\']');
|
||||
}
|
||||
else if (preg_match('#^\.((([a-z0-9\-_]+)?\.?)+?)$#s', $token, $varrefs))
|
||||
{
|
||||
$token = 'sizeof(' . $this->generate_block_data_ref($varrefs[1], false) . ')';
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue