From d271bced394806d22b0693b2eaf86138f6eb650f Mon Sep 17 00:00:00 2001 From: messju Date: Wed, 17 Mar 2004 15:32:10 +0000 Subject: [PATCH] removed '.' from the list of default resource_base_paths in _parse_resource_name() this should only affect _parse_resource_name() for templates, not for php-resources and not for config_files. the latter pass two their own resource_base_path. --- NEWS | 2 ++ libs/Smarty.class.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index f5dbd62e..977282ca 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ + - removed '.' from the list of default template locations in + _parse_resource_name() (messju) - fix avoid warning with template_exists() on an absolute paths (messju) - fix parameters passed to resource's secure()-function (messju) - fix handling of integer values like width and delay im diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 7675f502..55e432f7 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1637,7 +1637,6 @@ class Smarty $_resource_base_path = (array)$params['resource_base_path']; } else { $_resource_base_path = (array)$this->template_dir; - $_resource_base_path[] = '.'; } foreach ($_resource_base_path as $_curr_path) { $_fullpath = $_curr_path . DIRECTORY_SEPARATOR . $params['resource_name'];