Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | function act_dispatch(){ |
||
13 | $router = \dokuwiki\ActionRouter::getInstance(); // is this needed here or could we delegate it to tpl_content() later? |
||
14 | |||
15 | $headers = array('Content-Type: text/html; charset=utf-8'); |
||
16 | trigger_event('ACTION_HEADERS_SEND',$headers,'act_sendheaders'); |
||
17 | |||
18 | // clear internal variables |
||
19 | unset($router); |
||
20 | unset($headers); |
||
21 | // make all globals available to the template |
||
22 | extract($GLOBALS); |
||
23 | |||
24 | include(template('main.php')); |
||
25 | // output for the commands is now handled in inc/templates.php |
||
26 | // in function tpl_content() |
||
27 | } |
||
28 | |||
62 |