mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-30 18:49:08 +01:00
add storing of config values with names like "app/name"
This commit is contained in:
parent
1801ed8795
commit
31dc65f159
@ -289,10 +289,19 @@ class setup_process
|
||||
|
||||
foreach($current_config as $name => $value)
|
||||
{
|
||||
$app = 'phpgwapi';
|
||||
if ($name == 'postpone_statistics_submit')
|
||||
{
|
||||
$app = 'admin';
|
||||
}
|
||||
elseif(strpos($name, '/') !== false)
|
||||
{
|
||||
list($app, $name) = explode('/', $name);
|
||||
}
|
||||
$GLOBALS['egw_setup']->db->insert($GLOBALS['egw_setup']->config_table,array(
|
||||
'config_value' => $value,
|
||||
),array(
|
||||
'config_app' => $name == 'postpone_statistics_submit' ? 'admin' : 'phpgwapi',
|
||||
'config_app' => $app,
|
||||
'config_name' => $name,
|
||||
),__FILE__,__LINE__);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user