unifunc; $level = ob_get_level(); try { if (empty($unifunc) || !is_callable($unifunc)) { throw new SmartyException("Invalid compiled template for '{$_template->template_resource}'"); } if (isset($_template->smarty->security_policy)) { $_template->smarty->security_policy->startTemplate($_template); } // // render compiled or saved template code // $unifunc($_template); // any unclosed {capture} tags ? if (isset($_template->_cache['capture_stack'][0])) { $_template->capture_error(); } if (isset($_template->smarty->security_policy)) { $_template->smarty->security_policy->exitTemplate(); } return null; } catch (Exception $e) { while (ob_get_level() > $level) { ob_end_clean(); } if (isset($_template->smarty->security_policy)) { $_template->smarty->security_policy->exitTemplate(); } throw $e; } } /** * Get compiled time stamp * * @return int */ public function getTimeStamp() { if ($this->exists && !isset($this->timestamp)) { $this->timestamp = @filemtime($this->filepath); } return $this->timestamp; } }