fix update of file dependency

This commit is contained in:
Uwe Tews
2015-01-02 08:20:57 +01:00
parent 6f801de283
commit 97e7948e16

View File

@@ -56,7 +56,7 @@ class Smarty_Internal_Function_Call_Handler
$content = $cache->read($tplPtr); $content = $cache->read($tplPtr);
if ($content) { if ($content) {
// check if we must update file dependency // 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); $content = preg_replace("/('file_dependency'([\S\s]*?)\()/", "\\1{$match1[0]}", $content);
} }
$cache->write($tplPtr, $content . "<?php " . $match[0] . "?>\n"); $cache->write($tplPtr, $content . "<?php " . $match[0] . "?>\n");