From 0a66a27fe12ffe71fd853f4dca64613331cbd565 Mon Sep 17 00:00:00 2001 From: messju Date: Thu, 22 Jan 2004 23:54:51 +0000 Subject: [PATCH] removed emission of unnecessary notices for unavailable config-files in config_load() --- libs/plugins/function.config_load.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/plugins/function.config_load.php b/libs/plugins/function.config_load.php index 36b37c30..f0b8edde 100644 --- a/libs/plugins/function.config_load.php +++ b/libs/plugins/function.config_load.php @@ -75,7 +75,9 @@ function smarty_function_config_load($params, &$smarty) $smarty->_conf_obj->fix_newlines = $smarty->config_fix_newlines; } $_params = array('resource_name' => $_file, 'resource_base_path' => $smarty->config_dir); - $smarty->_fetch_resource_info($_params); + if (!$smarty->_fetch_resource_info($_params)) { + return; + } $smarty->_conf_obj->set_file_contents($_file, $_params['source_content']); $_config_vars = array_merge($smarty->_conf_obj->get($_file), $smarty->_conf_obj->get($_file, $_section));