diff options
author | Aleksander Machniak <alec@alec.pl> | 2022-08-01 22:00:35 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2022-08-01 22:01:03 +0300 |
commit | 53aabf85ea22c1b891b7ec5675763c9eeddcc818 (patch) | |
tree | f602b9ce02397261c391e08674306c45179bea34 | |
parent | 9140215b4e4d11ac174bee67bfb9f66e22c8e1bb (diff) |
Fix bug where renamed options were removed from the config on installto.sh (update.sh) run (#8643)
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | program/include/rcmail_install.php | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f448fcfb..a705647d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Password: Remove references to %c variable that has been removed before (#8633) - Fix anchor links in HTML mail (#8632) - Fix bug where config creation in Installer did ignore options in the form (#8634) +- Fix bug where renamed options were removed from the config on installto.sh (update.sh) run (#8643) ## Release 1.6.0 diff --git a/program/include/rcmail_install.php b/program/include/rcmail_install.php index 6ced25a77..0585d0f94 100644 --- a/program/include/rcmail_install.php +++ b/program/include/rcmail_install.php @@ -110,6 +110,10 @@ class rcmail_install */ public function load_config() { + if ($this->configured) { + return; + } + // defaults if ($config = $this->load_config_file(RCUBE_CONFIG_DIR . 'defaults.inc.php')) { $this->config = (array) $config; @@ -431,6 +435,7 @@ class rcmail_install } unset($current[$prop]); + unset($current[$replacement]); } foreach ($this->obsolete_config as $prop) { |