- bugfix on merging compiled templates when source files got removed or renamed.

This commit is contained in:
Uwe.Tews
2009-11-14 10:08:27 +00:00
parent 39b25f8db8
commit 2e70e88b0f
2 changed files with 7 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
11/14/2009
- bugfix on merging compiled templates when source files got removed or renamed.
11/12/2009
- fixed variable filenames in {include_php} and {insert}
- added scope to Smarty variables in the {block} tag compiler

View File

@@ -51,6 +51,10 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase {
$mtime = filemtime($_file_to_check[0]);
} else {
$tpl->parseResourceName($_file_to_check[0], $resource_type, $resource_name, $resource_handler);
if ($resource_type == 'file') {
$must_compile = true; // subtemplate no longer existing
break;
}
$mtime = $resource_handler->getTemplateTimestampTypeName($resource_type, $resource_name);
}
If ($mtime != $_file_to_check[1]) {