diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-04-23 21:24:22 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-04-23 21:24:22 +0200 |
commit | 7e30c1dd823686eb8e59e6e1c171a751e8af2d49 (patch) | |
tree | 9a0dee0a26572e21f5576bcddbc2c4d4b905aa23 /library/Smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php | |
parent | 78bf4564f20df20ec8d9025c974e25546e95bf69 (diff) | |
download | volse-hubzilla-7e30c1dd823686eb8e59e6e1c171a751e8af2d49.tar.gz volse-hubzilla-7e30c1dd823686eb8e59e6e1c171a751e8af2d49.tar.bz2 volse-hubzilla-7e30c1dd823686eb8e59e6e1c171a751e8af2d49.zip |
update smarty to version 3.1.29
Diffstat (limited to 'library/Smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php')
-rw-r--r-- | library/Smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/library/Smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php b/library/Smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php index 6624eb0bf..7defd6c92 100644 --- a/library/Smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php +++ b/library/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; |