aboutsummaryrefslogtreecommitdiffstats
path: root/include/smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2016-01-21 15:10:02 +0100
committerplegall <plg@piwigo.org>2016-01-21 15:10:02 +0100
commitd33051cb7236a930c1baf879fee75e92c35a93ee (patch)
tree4f7c596268420cc670cbbf767d941fadb07a1b26 /include/smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php
parent491464355911334ecbf49b742545286e82961112 (diff)
update to Smarty 3.1.29
Diffstat (limited to 'include/smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php')
-rw-r--r--include/smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php b/include/smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php
index 6624eb0bf..7defd6c92 100644
--- a/include/smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php
+++ b/include/smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php
@@ -43,8 +43,13 @@ class Smarty_Internal_Runtime_ValidateCompiled
} elseif ($_file_to_check[2] == 'string') {
continue;
} else {
- $source = Smarty_Template_Source::load(null, $tpl->smarty, $_file_to_check[0]);
- $mtime = $source->getTimeStamp();
+ $handler = Smarty_Resource::load($tpl->smarty, $_file_to_check[2]);
+ if ($handler->checkTimestamps()) {
+ $source = Smarty_Template_Source::load($tpl, $tpl->smarty, $_file_to_check[ 0 ]);
+ $mtime = $source->getTimeStamp();
+ } else {
+ continue;
+ }
}
if (!$mtime || $mtime > $_file_to_check[1]) {
$is_valid = false;