Prevent header already sent error for serendipity_editor.js.tpl
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user