mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
fix for: calling setup, sets some config values to default, all the time
This commit is contained in:
parent
9e49963a46
commit
f654e9458e
@ -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']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user