fix for: calling setup, sets some config values to default, all the time

This commit is contained in:
Klaus Leithoff 2010-04-06 15:32:40 +00:00
parent 9e49963a46
commit f654e9458e

View File

@ -167,6 +167,8 @@ class egw_session
$this->egw_domains = $domain_names;
if (!isset($GLOBALS['egw_setup']))
{
// verfiy and if necessary create and save our config settings
//
$save_rep = false;
@ -204,6 +206,7 @@ class egw_session
$GLOBALS['egw_info']['server']['max_history'] = 20;
$save_rep = true;
}
if ($save_rep)
{
$config = new config('phpgwapi');
@ -217,6 +220,7 @@ class egw_session
$config->value('max_history',$GLOBALS['egw_info']['server']['max_history']);
$config->save_repository();
}
}
self::set_cookiedomain();
ini_set('session.gc_maxlifetime', $GLOBALS['egw_info']['server']['sessions_timeout']);
}