From de3eb1d7f990c4cc17722ce3bdff7b9568ab8b9c Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Tue, 28 Sep 2010 16:38:14 +0200 Subject: Small fixes / cleanup --- inc/actions.php | 4 ---- 1 file changed, 4 deletions(-) (limited to 'inc/actions.php') diff --git a/inc/actions.php b/inc/actions.php index 3e0cb1207..d9f5d017c 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -16,13 +16,10 @@ if(!defined('DOKU_INC')) die('meh.'); * @triggers ACTION_HEADERS_SEND */ function act_dispatch(){ - global $INFO; global $ACT; global $ID; global $QUERY; global $lang; - global $conf; - global $license; $preact = $ACT; @@ -57,7 +54,6 @@ function act_dispatch(){ $ACT = act_permcheck($ACT); //register - $nil = array(); if($ACT == 'register' && $_POST['save'] && register()){ $ACT = 'login'; } -- cgit v1.2.3 From c346111a3d99754f72da068bb2e9518b4676d5a4 Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Wed, 29 Sep 2010 10:24:16 +0200 Subject: Add back globals for templates --- inc/actions.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'inc/actions.php') diff --git a/inc/actions.php b/inc/actions.php index d9f5d017c..0a6e6d8c7 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -145,6 +145,10 @@ function act_dispatch(){ act_redirect($ID,$preact); } + global $INFO; + global $conf; + global $license; + //call template FIXME: all needed vars available? $headers[] = 'Content-Type: text/html; charset=utf-8'; trigger_event('ACTION_HEADERS_SEND',$headers,'act_sendheaders'); -- cgit v1.2.3