From 245e5e5650eb2bfaf020e3d22a0355c000907511 Mon Sep 17 00:00:00 2001 From: mohrt Date: Fri, 6 Jun 2003 20:30:53 +0000 Subject: [PATCH] fix problem with new default_resource_type changes --- libs/plugins/core.parse_file_path.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/libs/plugins/core.parse_file_path.php b/libs/plugins/core.parse_file_path.php index 6fdbcb69..5d2ca277 100644 --- a/libs/plugins/core.parse_file_path.php +++ b/libs/plugins/core.parse_file_path.php @@ -30,16 +30,12 @@ function smarty_core_parse_file_path(&$params, &$this) } else { if(strlen($_file_path_parts[0]) == 1) { // 1 char is not resource type, but part of filepath - $params['resource_type'] = $this->default_resource_type; + $params['resource_type'] = 'file'; $params['resource_name'] = $params['file_path']; } else { $params['resource_type'] = $_file_path_parts[0]; $params['resource_name'] = $_file_path_parts[1]; } - if ($params['resource_type'] != 'file') { - $_params = array('type' => $params['resource_type']); - $this->_execute_core_function('load_resource_plugin', $_params); - } } if ($params['resource_type'] == 'file') { @@ -63,9 +59,11 @@ function smarty_core_parse_file_path(&$params, &$this) } return false; } + } else { + $_params = array('type' => $params['resource_type']); + $this->_execute_core_function('load_resource_plugin', $_params); } - // resource type != file return true; }