diff options
author | thomascube <thomas@roundcube.net> | 2008-10-29 19:12:39 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-10-29 19:12:39 +0000 |
commit | cbffc2f0aaffbdc963a790dd79cdd8ba827e672b (patch) | |
tree | e0b8eef7fe405b945e92ee73ff8678ae3437b6cc /installer | |
parent | 60f9a567800b70d9621cffc8d117b2cffb654dbf (diff) |
Let update script handle the replacement of 'multiple_identities' by 'identities_level'
Diffstat (limited to 'installer')
-rw-r--r-- | installer/rcube_install.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/installer/rcube_install.php b/installer/rcube_install.php index 12afc15f7..cb9333e30 100644 --- a/installer/rcube_install.php +++ b/installer/rcube_install.php @@ -33,7 +33,11 @@ class rcube_install var $bool_config_props = array(); var $obsolete_config = array('db_backend'); - var $replaced_config = array('skin_path' => 'skin', 'locale_string' => 'language'); + var $replaced_config = array( + 'skin_path' => 'skin', + 'locale_string' => 'language', + 'multiple_identities' => 'identities_level', + ); // these config options are optional or can be set to null var $optional_config = array( @@ -214,7 +218,7 @@ class rcube_install $out = $seen = array(); $optional = array_flip($this->optional_config); - // ireate over the current configuration + // iterate over the current configuration foreach ($this->config as $prop => $value) { if ($replacement = $this->replaced_config[$prop]) { $out['replaced'][] = array('prop' => $prop, 'replacement' => $replacement); @@ -274,6 +278,8 @@ class rcube_install if (isset($current[$prop])) { if ($prop == 'skin_path') $this->config[$replacement] = preg_replace('#skins/(\w+)/?$#', '\\1', $current[$prop]); + else if ($prop == 'multiple_identities') + $this->config[$replacement] = $current[$prop] ? 2 : 0; else $this->config[$replacement] = $current[$prop]; |