From 97e7948e16da9e98e43c2eb29ae64a0cfb41f05f Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Fri, 2 Jan 2015 08:20:57 +0100 Subject: [PATCH] fix update of file dependency --- libs/sysplugins/smarty_internal_function_call_handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sysplugins/smarty_internal_function_call_handler.php b/libs/sysplugins/smarty_internal_function_call_handler.php index eb637239..aeab6461 100644 --- a/libs/sysplugins/smarty_internal_function_call_handler.php +++ b/libs/sysplugins/smarty_internal_function_call_handler.php @@ -56,7 +56,7 @@ class Smarty_Internal_Function_Call_Handler $content = $cache->read($tplPtr); if ($content) { // check if we must update file dependency - if (!preg_match("/'{$funcParam['uid']}'([\S\s]*?)'nc_h'/", $content, $match2)) { + if (!preg_match("/'{$funcParam['uid']}'([\S\s]*?)'nocache_hash'/", $content, $match2)) { $content = preg_replace("/('file_dependency'([\S\s]*?)\()/", "\\1{$match1[0]}", $content); } $cache->write($tplPtr, $content . "\n");