From d19fbb19d9e65cc29b73113e251605a2306067d9 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Sun, 7 Feb 2010 20:45:44 +0000 Subject: [PATCH] - bugfix on changes of 05/02/2010 --- change_log.txt | 1 + libs/sysplugins/smarty_internal_template.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index 83877927..bd08999c 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,5 @@ 07/02/2010 +- bugfix on changes of 05/02/2010 - preserve line endings type form template source - API changes (see README file) diff --git a/libs/sysplugins/smarty_internal_template.php b/libs/sysplugins/smarty_internal_template.php index a4c3a91b..d5c95c56 100644 --- a/libs/sysplugins/smarty_internal_template.php +++ b/libs/sysplugins/smarty_internal_template.php @@ -739,7 +739,7 @@ class Smarty_Internal_Template extends Smarty_Internal_Data { $plugins_string .= "properties['nocache_hash']}%%*/required_plugins['nocache'] as $tmp) { foreach($tmp as $data) { - $plugins_string .= "if (!is_callable('{$data['function']}')) include '{$data['file']}';\n"; + $plugins_string .= "if (!is_callable(\'{$data['function']}\')) include \'{$data['file']}\';\n"; } } $plugins_string .= "?>/*/%%SmartyNocache:{$this->properties['nocache_hash']}%%*/';?>\n";