From bad31ae944f074dab12f7a6d1362775d8f2b18dd Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 29 Oct 2005 02:26:52 +0200 Subject: JavaScript refactoring This patch addes a first go on a central javascript and CSS dispatcher which builds a single script from all needed scripts, does optimizing and caching. darcs-hash:20051029002652-7ad00-7558b569c2bf65f5e41820644580d97c62edd0d6.gz --- inc/init.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'inc/init.php') diff --git a/inc/init.php b/inc/init.php index 108ed615c..41363f63d 100644 --- a/inc/init.php +++ b/inc/init.php @@ -46,8 +46,10 @@ @ini_set('arg_separator.output', '&'); // init session - session_name("DokuWiki"); - if (!headers_sent()) session_start(); + if (!headers_sent() && !defined(NOSESSION)){ + session_name("DokuWiki"); + session_start(); + } // kill magic quotes if (get_magic_quotes_gpc()) { -- cgit v1.2.3