diff --git a/libs/sysplugins/smarty_internal_resource_file.php b/libs/sysplugins/smarty_internal_resource_file.php index 9b6f00d5..5e68b4db 100644 --- a/libs/sysplugins/smarty_internal_resource_file.php +++ b/libs/sysplugins/smarty_internal_resource_file.php @@ -73,7 +73,7 @@ class Smarty_Internal_Resource_File extends Smarty_Resource */ public function getContent(Smarty_Template_Source $source) { - if (($source->smarty->compile_check && $source->exists) + if (($source->smarty->compile_check && !$source->exists) || false === ($content = file_get_contents($source->filepath)) ) { throw new SmartyException(