diff options
author | Andreas Gohr <andi@splitbrain.org> | 2005-10-29 02:26:52 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2005-10-29 02:26:52 +0200 |
commit | bad31ae944f074dab12f7a6d1362775d8f2b18dd (patch) | |
tree | af7ed25d7d8ef9c2c836afdd21b1ee7398db3dcd /inc/init.php | |
parent | 551242f8292dd257969d52089332f6ddb8bd70b2 (diff) | |
download | rpg-bad31ae944f074dab12f7a6d1362775d8f2b18dd.tar.gz rpg-bad31ae944f074dab12f7a6d1362775d8f2b18dd.tar.bz2 |
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
Diffstat (limited to 'inc/init.php')
-rw-r--r-- | inc/init.php | 6 |
1 files changed, 4 insertions, 2 deletions
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()) { |