diff options
author | andi <andi@splitbrain.org> | 2005-03-06 19:31:59 +0100 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-03-06 19:31:59 +0100 |
commit | 6b13307fb447795714d01cdc029d6ed7ac087cf3 (patch) | |
tree | cd80885d8e86ff4d4044df73b7320f9ad4bdc49d /inc/init.php | |
parent | 86770f3ea6c33f97b6755d11ed9700e756ef6e88 (diff) | |
download | rpg-6b13307fb447795714d01cdc029d6ed7ac087cf3.tar.gz rpg-6b13307fb447795714d01cdc029d6ed7ac087cf3.tar.bz2 |
template support (incomplete, maybe broken)
darcs-hash:20050306183159-9977f-22dbb69831b5fa2e28bbf62448c65053d96a2cb9.gz
Diffstat (limited to 'inc/init.php')
-rw-r--r-- | inc/init.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/init.php b/inc/init.php index 46046ab29..abedbfbbf 100644 --- a/inc/init.php +++ b/inc/init.php @@ -20,6 +20,10 @@ // define main script if(!defined('DOKU_SCRIPT')) define('DOKU_SCRIPT','doku.php'); + // define Template baseURL + if(!defined('DOKU_TPL')) define('DOKU_TPL', + DOKU_BASE.'tpl/'.$conf['template'].'/'); + // set up error reporting to sane values error_reporting(E_ALL ^ E_NOTICE); @@ -28,7 +32,7 @@ // init session session_name("DokuWiki"); - session_start(); + if (!headers_sent()) session_start(); // kill magic quotes if (get_magic_quotes_gpc()) { |