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