From c9e0f26fd0d6951fbd78561009c525ca20f73718 Mon Sep 17 00:00:00 2001 From: onli Date: Tue, 28 May 2013 11:53:35 +0200 Subject: [PATCH] cleanup of serendipity_smart_show --- include/functions_smarty.inc.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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