From 8e8feb39453dc8357cc9024a3df8ca83ac23c513 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Sat, 24 Jul 2010 21:58:16 +0000 Subject: [PATCH] - bugfix of change from 23/07/2010 when compiling modifer --- change_log.txt | 3 +++ libs/sysplugins/smarty_internal_compile_private_modifier.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index 84b78c15..7ded8522 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +24/07/2010 +- bugfix of change from 23/07/2010 when compiling modifer + 23/07/2010 - changed execution order. A variable filter does now run before modifiers on output of variables - bugfix use always { and } as delimiter for debug.tpl diff --git a/libs/sysplugins/smarty_internal_compile_private_modifier.php b/libs/sysplugins/smarty_internal_compile_private_modifier.php index 72d505f3..38221034 100644 --- a/libs/sysplugins/smarty_internal_compile_private_modifier.php +++ b/libs/sysplugins/smarty_internal_compile_private_modifier.php @@ -29,7 +29,7 @@ class Smarty_Internal_Compile_Private_Modifier extends Smarty_Internal_CompileBa $output = $_attr['value']; // loop over list of modifiers foreach ($_attr['modifierlist'] as $single_modifier) { - $mod_array = explode (':', $single_modifier); + $mod_array = preg_split("/(:)(?![^'\"])/", $single_modifier); $modifier = $mod_array[0]; $mod_array[0] = $output; $params = implode(", ", $mod_array);