diff --git a/libs/sysplugins/smarty_template_cached.php b/libs/sysplugins/smarty_template_cached.php index 9d0deace..c52cb017 100644 --- a/libs/sysplugins/smarty_template_cached.php +++ b/libs/sysplugins/smarty_template_cached.php @@ -109,9 +109,6 @@ class Smarty_Template_Cached { $this->compile_id = $_template->compile_id; $this->cache_id = $_template->cache_id; - if (!isset($_template->source)) { - $_template->loadSource(); - } $this->source = $_template->source; if (!class_exists('Smarty_CacheResource', false)) { require SMARTY_SYSPLUGINS_DIR . 'smarty_cacheresource.php'; @@ -393,8 +390,7 @@ class Smarty_Template_Cached $_SERVER['SMARTY_PHPUNIT_HEADERS'][] = 'Last-Modified: ' . gmdate('D, d M Y H:i:s', $this->timestamp) . ' GMT'; } break; - - default: + default: header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $this->timestamp) . ' GMT'); break; } diff --git a/libs/sysplugins/smarty_template_config.php b/libs/sysplugins/smarty_template_config.php index a8851692..681a8bac 100644 --- a/libs/sysplugins/smarty_template_config.php +++ b/libs/sysplugins/smarty_template_config.php @@ -109,7 +109,7 @@ class Smarty_Template_Config extends Smarty_Template_Source $resource = Smarty_Resource::load($smarty, $type); $source = new Smarty_Template_Config($resource, $smarty, $template_resource, $type, $name); $resource->populate($source, $_template); - if ((!isset($source->exists) || !$source->exists) && isset($_template->smarty->default_config_handler_func)) { + if (!$source->exists && isset($_template->smarty->default_config_handler_func)) { Smarty_Internal_Extension_DefaultTemplateHandler::_getDefault($_template, $source); } $source->unique_resource = $resource->buildUniqueResourceName($smarty, $name, true);