- bugfix change of 23.08.2016 failed on linux when use_include_path = true

This commit is contained in:
uwetews
2016-08-26 05:54:11 +02:00
parent 2003020df9
commit 5580857d9b
3 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
===== 3.1.31-dev ===== (xx.xx.xx)
26.08.2016
- bugfix change of 23.08.2016 failed on linux when use_include_path = true
23.08.2016
- bugfix remove constant DS as shortcut for DIRECTORY_SEPARATOR as the user may have defined it to something else https://github.com/smarty-php/smarty/issues/277

View File

@@ -114,7 +114,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.31-dev/6';
const SMARTY_VERSION = '3.1.31-dev/7';
/**
* define variable scopes

View File

@@ -84,7 +84,7 @@ class Smarty_Internal_Runtime_GetIncludePath
if ($this->_include_path != $_i_path) {
$this->_include_dirs = array();
$this->_include_path = $_i_path;
$_dirs = (array) explode($smarty->ds, $_i_path);
$_dirs = (array) explode(PATH_SEPARATOR, $_i_path);
foreach ($_dirs as $_path) {
if (is_dir($_path)) {
$this->_include_dirs[] = $smarty->_realpath($_path . $smarty->ds, true);