fixed a problem with the loading of config (with session restore), by loading the class.config.inc.php after the stored object is unserialized.

This commit is contained in:
Klaus Leithoff 2008-01-25 10:54:51 +00:00
parent 50ff47def7
commit e6cd15b08d

View File

@ -80,12 +80,13 @@ if ($GLOBALS['egw_info']['server']['sessions_type'] == 'php4-restore' && $_REQUE
// including the necessary class-definitions
foreach($_SESSION['egw_included_files'] as $file)
{
if (basename($file) == 'class.config.inc.php') continue;
//echo "<p>about to include $file</p>\n";
include_once($file);
if (basename($file) == 'class.egw_framework.inc.php') break; // the rest is not needed and makes only problems
//if (basename($file) == 'class.egw_framework.inc.php') break; // the rest is not needed and makes only problems
}
$GLOBALS['egw'] = unserialize($_SESSION['egw_object_cache']);
include_once(EGW_API_INC.'/class.config.inc.php');
if (is_object($GLOBALS['egw']))
{
@ -199,7 +200,7 @@ if ($GLOBALS['egw_info']['server']['sessions_type'] == 'php4-restore' && $GLOBAL
{
switch(basename($file))
{
case 'head.inc.php': // needs EGW_TEMPLATE_DIR and is included anyway by common::egw_header()
case 'header.inc.php': // needs EGW_TEMPLATE_DIR and is included anyway by common::egw_header()
case 'functions.inc.php': // not needed/wanted at all
break;
default: