diff --git a/change_log.txt b/change_log.txt index a54add50..2e6a4982 100644 --- a/change_log.txt +++ b/change_log.txt @@ -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 diff --git a/libs/plugins/function.cycle.php b/libs/plugins/function.cycle.php index 6f742d5c..e93a040d 100644 --- a/libs/plugins/function.cycle.php +++ b/libs/plugins/function.cycle.php @@ -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'] = ','; }