From 71e364e4b230951f220ea7d20afb1ff67d09d70a Mon Sep 17 00:00:00 2001 From: uwetews Date: Wed, 9 Dec 2015 02:16:48 +0100 Subject: [PATCH] - bugix Smarty did fail under PHP 7.0.0 with use_include_path = true; --- libs/sysplugins/smarty_internal_runtime_getincludepath.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libs/sysplugins/smarty_internal_runtime_getincludepath.php b/libs/sysplugins/smarty_internal_runtime_getincludepath.php index 81253e8e..72149cd3 100644 --- a/libs/sysplugins/smarty_internal_runtime_getincludepath.php +++ b/libs/sysplugins/smarty_internal_runtime_getincludepath.php @@ -86,11 +86,8 @@ class Smarty_Internal_Runtime_GetIncludePath $this->_include_path = $_i_path; $_dirs = (array) explode(PATH_SEPARATOR, $_i_path); foreach ($_dirs as $_path) { - if (isset($_path[0]) && $_path[0] != '/' && isset($_path[1]) && $_path[1] != ':') { - $_path = $smarty->_realpath($_path . DS, true); - } if (is_dir($_path)) { - $this->_include_dirs[] =$_path; + $this->_include_dirs[] = $smarty->_realpath($_path . DS, true); } } return true;