1
0

Prevent header already sent error for serendipity_editor.js.tpl

This commit is contained in:
onli
2020-03-25 23:49:10 +01:00
parent d690a751d3
commit 51448ddcae

View File

@@ -118,7 +118,9 @@ function errorHandlerCreateDOM(htmlStr) {
case 'external_plugin':
if ($eventData == 'admin/serendipity_editor.js') {
header('Content-Type: application/javascript');
if (! headers_sent()) {
header('Content-Type: application/javascript');
}
echo serendipity_smarty_show('admin/serendipity_editor.js.tpl', null, 'JS', 'include/plugin_api.inc.php:external_plugin');
}