From 8d30442450100851d23a9cd5776a0f7618865f65 Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Sun, 28 Jun 2015 15:12:00 +0200 Subject: [PATCH] - bugfix PATH_SEPARATOR was replaced by mistake in autoloader --- change_log.txt | 1 + libs/Autoloader.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index b62cfa3d..9a28b699 100644 --- a/change_log.txt +++ b/change_log.txt @@ -8,6 +8,7 @@ - move $smarty->append() and $smarty->appendByRef() into extension - optimize autoloader - optimize file path normalization + - bugfix PATH_SEPARATOR was replaced by mistake in autoloader 27.06.2015 - bugfix resolve naming conflict between custom Smarty delimiter '<%' and PHP ASP tags https://github.com/smarty-php/smarty/issues/64 diff --git a/libs/Autoloader.php b/libs/Autoloader.php index 9bb71079..7301ee2f 100644 --- a/libs/Autoloader.php +++ b/libs/Autoloader.php @@ -74,7 +74,7 @@ class Smarty_Autoloader if (!defined('SMARTY_SPL_AUTOLOAD')) { define('SMARTY_SPL_AUTOLOAD', 0); } - if (SMARTY_SPL_AUTOLOAD && set_include_path(get_include_path() . DIRECTORY_SEPARATOR . SMARTY_SYSPLUGINS_DIR) !== false) { + if (SMARTY_SPL_AUTOLOAD && set_include_path(get_include_path() . PATH_SEPARATOR . SMARTY_SYSPLUGINS_DIR) !== false) { $registeredAutoLoadFunctions = spl_autoload_functions(); if (!isset($registeredAutoLoadFunctions['spl_autoload'])) { spl_autoload_register();