- bugfix cycle plugin

This commit is contained in:
Uwe.Tews
2009-11-17 20:17:51 +00:00
parent 1470251f18
commit e081d85b79
2 changed files with 3 additions and 2 deletions

View File

@@ -3,7 +3,8 @@
- 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
- 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
- lexer/parser optimizations on quoted strings

View File

@@ -63,7 +63,7 @@ function smarty_function_cycle($params, $smarty, $template)
if (isset($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'] = ',';
}