From 7f64fdc593dfd999c5c03af9d890c457c26ee5da Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Mon, 22 Mar 2010 16:12:18 +0000 Subject: [PATCH] - bugfix make directory separator operating system independend in compileAllTemplates() --- change_log.txt | 3 +++ libs/sysplugins/smarty_internal_utility.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index 1a32a694..18d7647f 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +22/03/2010 +- bugfix make directory separator operating system independend in compileAllTemplates() + 21/03/2010 - removed unused code in compileAllTemplates() diff --git a/libs/sysplugins/smarty_internal_utility.php b/libs/sysplugins/smarty_internal_utility.php index 253f9d2d..d63762c2 100644 --- a/libs/sysplugins/smarty_internal_utility.php +++ b/libs/sysplugins/smarty_internal_utility.php @@ -75,7 +75,7 @@ class Smarty_Internal_Utility { if ($_fileinfo->getPath() == substr($_dir, 0, -1)) { $_template_file = $_file; } else { - $_template_file = substr($_fileinfo->getPath(), strlen($_dir)) . '\\' . $_file; + $_template_file = substr($_fileinfo->getPath(), strlen($_dir)) . DS . $_file; } echo '
', $_dir, '---', $_template_file; flush();