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;