properties['tpl_function']['param'][$_name]; $code = file_get_contents($funcParam['compiled_filepath']); if (preg_match("/\/\* {$_function} \*\/([\S\s]*?)\/\*\/ {$_function} \*\//", $code, $match)) { $output = "\n"; $output .= $match[0]; $output .= "?>\n"; } unset($code, $match); eval($output); if (function_exists($_function)) { $_function ($_smarty_tpl, $_params); $tplPtr = $_smarty_tpl; while (isset($tplPtr->parent) && !isset($tplPtr->parent->cached)) { $tplPtr = $tplPtr->parent; } if (isset($tplPtr->parent->cached)) { $cached = $tplPtr->parent->cached; } return true; } return false; } }