diff --git a/include/functions_smarty.inc.php b/include/functions_smarty.inc.php index 2c851f2c..70d858d4 100644 --- a/include/functions_smarty.inc.php +++ b/include/functions_smarty.inc.php @@ -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')); +} \ No newline at end of file