Archived
1
0

Use return instead of echo in the remaining core

Debug-messages still may use echo, and some functions in functions_image and trackback still use it to generate progress messages, which should get cleaned up as well but is not that urgent
This commit is contained in:
onli
2013-07-05 19:16:11 +02:00
parent 0614fcdf51
commit d80a8334c8
16 changed files with 51 additions and 73 deletions
+2 -5
View File
@@ -203,7 +203,7 @@ function show_plugins($event_only = false, $sidebars = null)
}
$data['total'] = $i;
echo serendipity_smarty_show('admin/show_plugins.fnc.tpl', $data);
return serendipity_smarty_show('admin/show_plugins.fnc.tpl', $data);
}
/**
@@ -625,10 +625,7 @@ function serendipity_plugin_config(&$plugin, &$bag, &$name, &$desc, &$config_nam
if ($showExample && method_exists($plugin, 'example') ) {
$data['showExample'] = true;
ob_start();
echo $plugin->example();
$data['plugin_example'] = ob_get_contents();
ob_end_clean();
$data['plugin_example'] = $plugin->example();
}
if ($spawnNuggets && isset($serendipity['wysiwyg']) && $serendipity['wysiwyg'] && count($htmlnugget) > 0) {