mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
===== trunk =====
|
||||
30.03.2012
|
||||
- bugfix template inheritance did not throw exception when a parent template was deleted (issue 90)
|
||||
|
||||
27.03.2012
|
||||
- bugfix prefilter did run multiple times on inline subtemplates compiled into several main templates (Forum Topic 21325)
|
||||
- bugfix implement Smarty2's behaviour of variables assigned by reference in SmartyBC. {assign} will affect all references.
|
||||
|
@@ -442,7 +442,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase {
|
||||
$mtime = $this->source->timestamp;
|
||||
} else {
|
||||
// file and php types can be checked without loading the respective resource handlers
|
||||
$mtime = filemtime($_file_to_check[0]);
|
||||
$mtime = @filemtime($_file_to_check[0]);
|
||||
}
|
||||
} elseif ($_file_to_check[2] == 'string') {
|
||||
continue;
|
||||
@@ -450,7 +450,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase {
|
||||
$source = Smarty_Resource::source(null, $this->smarty, $_file_to_check[0]);
|
||||
$mtime = $source->timestamp;
|
||||
}
|
||||
if ($mtime > $_file_to_check[1]) {
|
||||
if (!$mtime || $mtime > $_file_to_check[1]) {
|
||||
$is_valid = false;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user