Fix indexing by section properties.

This commit is contained in:
andrey
2001-05-02 19:21:10 +00:00
parent 5c4d6bb7c1
commit 0ab86dc7c9
3 changed files with 6 additions and 4 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- fixed indexing by section properties with the new syntax. (Andrei)
Version 1.4.0b2
---------------
- fixed issue in Config_File.class with referencing blank sections (Andrei)

View File

@@ -724,7 +724,7 @@ class Smarty_Compiler extends Smarty {
{
list($var_ref, $modifiers) = explode('|', substr($var_expr, 1), 2);
preg_match_all('!\[\w+\]|(->|\.)\w+|^\w+!', $var_ref, $match);
preg_match_all('!\[\w+(\.\w+)?\]|(->|\.)\w+|^\w+!', $var_ref, $match);
$indexes = $match[0];
$var_name = array_shift($indexes);

View File

@@ -724,7 +724,7 @@ class Smarty_Compiler extends Smarty {
{
list($var_ref, $modifiers) = explode('|', substr($var_expr, 1), 2);
preg_match_all('!\[\w+\]|(->|\.)\w+|^\w+!', $var_ref, $match);
preg_match_all('!\[\w+(\.\w+)?\]|(->|\.)\w+|^\w+!', $var_ref, $match);
$indexes = $match[0];
$var_name = array_shift($indexes);