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 --- .../sysplugins/smarty_internal_runtime_updatecache.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'library/Smarty/libs/sysplugins/smarty_internal_runtime_updatecache.php') diff --git a/library/Smarty/libs/sysplugins/smarty_internal_runtime_updatecache.php b/library/Smarty/libs/sysplugins/smarty_internal_runtime_updatecache.php index 73de954f3..a895a3070 100644 --- a/library/Smarty/libs/sysplugins/smarty_internal_runtime_updatecache.php +++ b/library/Smarty/libs/sysplugins/smarty_internal_runtime_updatecache.php @@ -73,7 +73,7 @@ class Smarty_Internal_Runtime_UpdateCache /** * Cache was invalid , so render from compiled and write to cache - * + * * @param \Smarty_Template_Cached $cached * @param \Smarty_Internal_Template $_template * @param $no_output_filter @@ -129,20 +129,6 @@ class Smarty_Internal_Runtime_UpdateCache return false; } $content = $_template->smarty->ext->_codeFrame->create($_template, $content, '', true); - if (!empty($_template->cached->tpl_function)) { - foreach ($_template->cached->tpl_function as $funcParam) { - if (is_file($funcParam['compiled_filepath'])) { - // read compiled file - $code = file_get_contents($funcParam['compiled_filepath']); - // grab template function - if (preg_match("/\/\* {$funcParam['call_name']} \*\/([\S\s]*?)\/\*\/ {$funcParam['call_name']} \*\//", - $code, $match)) { - unset($code); - $content .= "\n"; - } - } - } - } return $this->write($cached, $_template, $content); } -- cgit v1.2.3