summaryrefslogtreecommitdiff
path: root/lib/tpl
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-03-05 15:52:36 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-03-05 16:20:46 +0100
commit33c7f9a3da533668d21db2e26f776bd854ae81fa (patch)
tree290299856da1624fb1b531c38d77869f19d14ea6 /lib/tpl
parent5e5debec39d4912761954435b4cded9b5b41263a (diff)
downloadrpg-33c7f9a3da533668d21db2e26f776bd854ae81fa.tar.gz
rpg-33c7f9a3da533668d21db2e26f776bd854ae81fa.tar.bz2
avoid premature output before headers are sent
Diffstat (limited to 'lib/tpl')
-rw-r--r--lib/tpl/index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tpl/index.php b/lib/tpl/index.php
index a55081738..20abea20c 100644
--- a/lib/tpl/index.php
+++ b/lib/tpl/index.php
@@ -8,6 +8,9 @@
* @author Andreas Gohr <andi@splitbrain.org>
* @author Anika Henke <anika@selfthinker.org>
*/
+if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../');
+if(!define('NOSESSION')) define('NOSESSION',1);
+require_once(DOKU_INC.'inc/init.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -41,9 +44,6 @@
</head>
<body>
<?php
-if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../');
-require_once(DOKU_INC.'inc/init.php');
-
$ini = @parse_ini_file($conf['template'].'/style.ini',true);
if ($ini) {
echo '<table>';