From 992ce6c94b70a01493b9dd9f03dcf5dbfcf618d4 Mon Sep 17 00:00:00 2001 From: messju Date: Tue, 17 Jun 2003 16:47:35 +0000 Subject: [PATCH] switched _process_template() to _is_compiled()-logic --- libs/core/core.smarty_include.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/core/core.smarty_include.php b/libs/core/core.smarty_include.php index c8f78314..af8ad4b3 100644 --- a/libs/core/core.smarty_include.php +++ b/libs/core/core.smarty_include.php @@ -34,7 +34,10 @@ function smarty_core_smarty_include($params, &$this) $_smarty_compile_path = $this->_get_compile_path($params['smarty_include_tpl_file']); - if ($this->_process_template($params['smarty_include_tpl_file'], $_smarty_compile_path)) { + + if ($this->_is_compiled($params['smarty_include_tpl_file'], $_smarty_compile_path) + || $this->_compile_template($params['smarty_include_tpl_file'], $_smarty_compile_path)) + { include($_smarty_compile_path); }