From e081d85b7924fef6d7d63260984c13454866e4ac Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Tue, 17 Nov 2009 20:17:51 +0000 Subject: [PATCH] - bugfix cycle plugin --- change_log.txt | 3 ++- libs/plugins/function.cycle.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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'] = ','; }