public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null, $display = false, $merge_tpl_vars = true, $no_output_filter = false) { if ($this->smarty->caching) { $tpl = parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter); if (property_exists($this, 'cached')) { $filepath = str_replace($this->smarty->getCacheDir(), '', $this->cached->filepath); if ($this->smarty->is_in_lazy_cache($this->template_resource, $this->cache_id, $this->compile_id) != $filepath) { $this->smarty->update_filepath($filepath, $this->template_resource, $this->cache_id, $this->compile_id); } } return $tpl; } else { return parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter); } }