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

6
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)
@@ -19,8 +21,8 @@ Version 1.4.0b1
- updated GLOBAL_ASSIGN to take SCRIPT_NAME from HTTP_SERVER_VARS
instead of global variable. You can also assign several variables
in one shot with an array. (Monte, Roman Neuhauser)
- added template prefilters, register_prefilter() and
unregister_prefilter() API functions. (Monte)
- added template prefilters, register_prefilter() and
unregister_prefilter() API functions. (Monte)
- added RELEASE_NOTES file to distribution. (Monte)
- moved CREDITS out of manual into its own file. (Monte)
- added register_resource() and unregister_resource() API functions. (Monte)

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);