From 7e30c1dd823686eb8e59e6e1c171a751e8af2d49 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 23 Apr 2016 21:24:22 +0200 Subject: update smarty to version 3.1.29 --- .../libs/sysplugins/smarty_internal_runtime_validatecompiled.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'library/Smarty/libs/sysplugins/smarty_internal_runtime_validatecompiled.php') 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; -- cgit v1.2.3