mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +02:00
- bugfix cycle plugin
This commit is contained in:
@@ -3,7 +3,8 @@
|
|||||||
- use _dir_perms and _file_perms properties at file creation
|
- use _dir_perms and _file_perms properties at file creation
|
||||||
- new constant SMARTY_RESOURCE_DATE_FORMAT (default '%b %e, %Y') which is used as default format in modifier date_format
|
- new constant SMARTY_RESOURCE_DATE_FORMAT (default '%b %e, %Y') which is used as default format in modifier date_format
|
||||||
- added {foreach $array as $key=>$value} syntax
|
- added {foreach $array as $key=>$value} syntax
|
||||||
- renamed extend tag and resource to extens: {extends file='foo.tol'} , $smarty->display('extends:foo.tpl|bar.tpl);
|
- renamed extend tag and resource to extends: {extends file='foo.tol'} , $smarty->display('extends:foo.tpl|bar.tpl);
|
||||||
|
- bugfix cycle plugin
|
||||||
|
|
||||||
11/15/2009
|
11/15/2009
|
||||||
- lexer/parser optimizations on quoted strings
|
- lexer/parser optimizations on quoted strings
|
||||||
|
@@ -63,7 +63,7 @@ function smarty_function_cycle($params, $smarty, $template)
|
|||||||
|
|
||||||
if (isset($params['delimiter'])) {
|
if (isset($params['delimiter'])) {
|
||||||
$template->plugin_data['cycle'][$name]['delimiter'] = $params['delimiter'];
|
$template->plugin_data['cycle'][$name]['delimiter'] = $params['delimiter'];
|
||||||
} elseif (!isset($cycle_vars[$name]['delimiter'])) {
|
} elseif (!isset($template->plugin_data['cycle'][$name]['delimiter'])) {
|
||||||
$template->plugin_data['cycle'][$name]['delimiter'] = ',';
|
$template->plugin_data['cycle'][$name]['delimiter'] = ',';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user