diff options
-rw-r--r-- | inc/actions.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/inc/actions.php b/inc/actions.php index d585ccace..8218dd8a6 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -107,12 +107,19 @@ function act_dispatch(){ } //call template FIXME: all needed vars available? - header('Content-Type: text/html; charset=utf-8'); + $headers[] = 'Content-Type: text/html; charset=utf-8'; + $evt = new event('SEND_HEADERS',$headers,act_sendheaders); + $evt->trigger(); + include(template('main.php')); // output for the commands is now handled in inc/templates.php // in function tpl_content() } +function act_sendheaders($headers) { + foreach ($headers as $hdr) header($hdr); +} + /** * Sanitize the action command * |