From d566e54dfef52306847f8739bb931cab46aaa97d Mon Sep 17 00:00:00 2001 From: onli Date: Tue, 28 May 2013 17:34:24 +0200 Subject: [PATCH] smarty_show: use fetch, for better control --- include/functions_smarty.inc.php | 2 +- templates/2k11/config.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions_smarty.inc.php b/include/functions_smarty.inc.php index 70d858d4..a347687e 100644 --- a/include/functions_smarty.inc.php +++ b/include/functions_smarty.inc.php @@ -1098,5 +1098,5 @@ function serendipity_smarty_show($template, $data = null) { $serendipity['smarty']->assign($data); - return $serendipity['smarty']->display(serendipity_getTemplateFile($template, 'serendipityPath')); + return $serendipity['smarty']->fetch(serendipity_getTemplateFile($template, 'serendipityPath')); } \ No newline at end of file diff --git a/templates/2k11/config.inc.php b/templates/2k11/config.inc.php index 4f232cf0..a6ccb0af 100644 --- a/templates/2k11/config.inc.php +++ b/templates/2k11/config.inc.php @@ -114,7 +114,7 @@ function serendipity_plugin_api_pre_event_hook($event, &$bag, &$eventData, &$add case 'external_plugin': switch ($eventData) { case 'admin/serendipity_editor.js': - serendipity_smarty_show('admin/serendipity_editor.js.tpl'); + echo serendipity_smarty_show('admin/serendipity_editor.js.tpl'); break; } return true;