From 12b3af6073a5c7d507a7119d15f57edb8e9f3a76 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Mon, 17 Mar 2008 20:20:00 +0000 Subject: [PATCH] should fix some problems with cookies (maybe sessions? if only!) --- fp-includes/core/core.system.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/fp-includes/core/core.system.php b/fp-includes/core/core.system.php index dabf2be..d82ddbd 100755 --- a/fp-includes/core/core.system.php +++ b/fp-includes/core/core.system.php @@ -135,19 +135,20 @@ $GLOBALS['smarty'] =& $GLOBALS['_FP_SMARTY']; $smarty =& $GLOBALS['smarty']; - $GLOBALS['fp_config'] =& config_load(); - $GLOBALS['theme'] =& theme_loadsettings(); - - $GLOBALS['lang'] =& lang_load(); - - cookie_setup(); sess_setup(); user_loggedin(); + ob_start(); + + $GLOBALS['theme'] =& theme_loadsettings(); + + $GLOBALS['lang'] =& lang_load(); + + plugin_loadall(); // init smarty @@ -155,8 +156,9 @@ $smarty->cache_dir = SMARTY_DIR . 'cache/'; $smarty->caching = 0; - do_action('init'); - + do_action('init'); + ob_end_clean(); + } function system_seterr($module, $val) {