aboutsummaryrefslogtreecommitdiffstats
path: root/include/smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php
diff options
context:
space:
mode:
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;