remove no longer needed code

This commit is contained in:
Uwe Tews
2014-11-08 21:06:53 +01:00
parent f92af96419
commit ea9c681106

View File

@@ -258,27 +258,6 @@ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data
if (!$no_output_filter && !$_template->has_nocache_code && (isset($this->smarty->autoload_filters['output']) || isset($this->smarty->registered_filters['output']))) {
$output = Smarty_Internal_Filter_Handler::runFilter('output', $output, $_template);
}
// rendering (must be done before writing cache file because of {function} nocache handling)
/** @var Smarty_Internal_Template $_smarty_tpl
* used in evaluated code
*/
$_smarty_tpl = $_template;
// $_template->properties['type'] = 'cache';
/// $_template->properties['cache_lifetime'] = $this->cache_lifetime;
// $_template->properties['unifunc'] = 'content_' . str_replace(array('.', ','), '_', uniqid('', true));
// $content = $_template->createTemplateCodeFrame($output, true);
try {
ob_start();
eval("?>" . $output);
ob_get_clean();
}
catch (Exception $e) {
ob_get_clean();
throw $e;
}
// write cache file content
$_template->writeCachedContent($output);
unset($output);