mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
- bugfix on merging compiled templates when source files got removed or renamed.
This commit is contained in:
@@ -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
|
||||
|
@@ -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]) {
|
||||
|
Reference in New Issue
Block a user