update config

This commit is contained in:
aynsix
2019-12-17 14:34:18 +04:00
parent 63d2f1cf54
commit c40802265d
3 changed files with 8 additions and 21 deletions

View File

@@ -84,11 +84,16 @@ class patch_410alpha20a implements patchInterface
$app['conf']->set(['geocoding-providers', 0, 'map-provider'], $geocodingName);
}
// remove registry classic section
// remove registry classic section if exist
if ($app['conf']->has(['registry', 'classic'])) {
$app['conf']->remove(['registry', 'classic']);
}
// remove bridge section if exist
if ($app['conf']->has(['main', 'bridge'])) {
$app['conf']->remove(['main', 'bridge']);
}
// insert RGPD bloc if not exist
if (!$app['conf']->has(['user_account', 'deleting_policies', 'email_confirmation'])) {
$app['conf']->set(['user_account', 'deleting_policies', 'email_confirmation'], true);