mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Environments: banner displaying a message if env is NOT 'production' + factorized some code to create/update a config from the page parameters
SVN:trunk[1774]
This commit is contained in:
@@ -211,7 +211,7 @@ try
|
||||
'db_prefix' => utils::ReadParam('db_prefix', '', false, 'raw_data')
|
||||
);
|
||||
$sModuleDir = Utils::ReadParam('modules_dir', '');
|
||||
UpdateConfigSettings($oConfig, $aParamValues, $sModuleDir);
|
||||
$oConfig->UpdateFromParams($aParamValues, $sModuleDir);
|
||||
|
||||
InitDataModel($oConfig, true); // load data model only
|
||||
|
||||
@@ -240,7 +240,7 @@ try
|
||||
'db_prefix' => utils::ReadParam('db_prefix', '', false, 'raw_data')
|
||||
);
|
||||
$sModuleDir = Utils::ReadParam('modules_dir', '');
|
||||
UpdateConfigSettings($oConfig, $aParamValues, $sModuleDir);
|
||||
$oConfig->UpdateFromParams($aParamValues, $sModuleDir);
|
||||
|
||||
InitDataModel($oConfig, false); // load data model and connect to the database
|
||||
|
||||
@@ -310,7 +310,7 @@ try
|
||||
'db_prefix' => utils::ReadParam('db_prefix', '', false, 'raw_data')
|
||||
);
|
||||
$sModuleDir = Utils::ReadParam('modules_dir', '');
|
||||
UpdateConfigSettings($oConfig, $aParamValues, $sModuleDir);
|
||||
$oConfig->UpdateFromParams($aParamValues, $sModuleDir);
|
||||
|
||||
InitDataModel($oConfig, false); // load data model and connect to the database
|
||||
|
||||
|
||||
Reference in New Issue
Block a user