diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 1d3b75b3..2ca0b7a6 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1459,7 +1459,7 @@ class Smarty return true; } else { // get file source and timestamp - $_params = array('resource_name' => $resource_name); + $_params = array('resource_name' => $resource_name, 'get_source'=>false); if (!$this->_fetch_resource_info($_params, $this)) { return false; } diff --git a/libs/core/core.load_plugins.php b/libs/core/core.load_plugins.php index 6e2a8253..170d2dc5 100644 --- a/libs/core/core.load_plugins.php +++ b/libs/core/core.load_plugins.php @@ -69,7 +69,7 @@ function smarty_core_load_plugins($params, &$smarty) include_once $_plugin_file; $_plugin_func = 'smarty_' . $_type . '_' . $_name; - if (!$smarty->_plugin_implementation_exists($_plugin_func)) { + if (!function_exists($_plugin_func)) { $smarty->_trigger_fatal_error("[plugin] function $_plugin_func() not found in $_plugin_file", $_tpl_file, $_tpl_line, __FILE__, __LINE__); continue; }