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:
6
NEWS
6
NEWS
@@ -1,3 +1,5 @@
|
|||||||
|
- fixed indexing by section properties with the new syntax. (Andrei)
|
||||||
|
|
||||||
Version 1.4.0b2
|
Version 1.4.0b2
|
||||||
---------------
|
---------------
|
||||||
- fixed issue in Config_File.class with referencing blank sections (Andrei)
|
- 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
|
- updated GLOBAL_ASSIGN to take SCRIPT_NAME from HTTP_SERVER_VARS
|
||||||
instead of global variable. You can also assign several variables
|
instead of global variable. You can also assign several variables
|
||||||
in one shot with an array. (Monte, Roman Neuhauser)
|
in one shot with an array. (Monte, Roman Neuhauser)
|
||||||
- added template prefilters, register_prefilter() and
|
- added template prefilters, register_prefilter() and
|
||||||
unregister_prefilter() API functions. (Monte)
|
unregister_prefilter() API functions. (Monte)
|
||||||
- added RELEASE_NOTES file to distribution. (Monte)
|
- added RELEASE_NOTES file to distribution. (Monte)
|
||||||
- moved CREDITS out of manual into its own file. (Monte)
|
- moved CREDITS out of manual into its own file. (Monte)
|
||||||
- added register_resource() and unregister_resource() API functions. (Monte)
|
- added register_resource() and unregister_resource() API functions. (Monte)
|
||||||
|
@@ -724,7 +724,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
{
|
{
|
||||||
list($var_ref, $modifiers) = explode('|', substr($var_expr, 1), 2);
|
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];
|
$indexes = $match[0];
|
||||||
$var_name = array_shift($indexes);
|
$var_name = array_shift($indexes);
|
||||||
|
|
||||||
|
@@ -724,7 +724,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
{
|
{
|
||||||
list($var_ref, $modifiers) = explode('|', substr($var_expr, 1), 2);
|
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];
|
$indexes = $match[0];
|
||||||
$var_name = array_shift($indexes);
|
$var_name = array_shift($indexes);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user