mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
Fix indexing by section properties.
This commit is contained in:
2
NEWS
2
NEWS
@@ -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)
|
||||
|
@@ -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);
|
||||
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user