From a70600d9648016457aee56be99d93b4cc36261d4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 6 Nov 2014 13:46:03 +0000 Subject: [PATCH] add storing of config values with names like "app/name" --- setup/inc/class.setup_process.inc.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/setup/inc/class.setup_process.inc.php b/setup/inc/class.setup_process.inc.php index 15484dd2d7..712451bacf 100755 --- a/setup/inc/class.setup_process.inc.php +++ b/setup/inc/class.setup_process.inc.php @@ -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__); }