1
0

cleanup of serendipity_smart_show

This commit is contained in:
onli
2013-05-28 11:53:35 +02:00
parent 6573a64544
commit c9e0f26fd0

View File

@ -1097,16 +1097,6 @@ function serendipity_smarty_show($template, $data = null) {
}
$serendipity['smarty']->assign($data);
$tfile = serendipity_getTemplateFile($template, 'serendipityPath');
if ($tfile == $template) {
$tfile = dirname(__FILE__) . "/$template";
}
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true;
$content = $serendipity['smarty']->fetch('file:'. $tfile);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion;
echo $content;
}
return $serendipity['smarty']->display(serendipity_getTemplateFile($template, 'serendipityPath'));
}