summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/include/rcmail.php5
-rw-r--r--program/include/rcube_plugin_api.php1
2 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 7c01edf6f..0bf9cf496 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -682,13 +682,12 @@ class rcmail
$options['port'] = $_SESSION['storage_port'];
$options['ssl'] = $_SESSION['storage_ssl'];
$options['password'] = $this->decrypt($_SESSION['password']);
+ // set 'imap_host' for backwards compatibility
+ $_SESSION[$driver.'_host'] = &$_SESSION['storage_host'];
}
$options = $this->plugins->exec_hook("storage_init", $options);
- // for backward compat. (deprecated, to be removed)
- $options = $this->plugins->exec_hook("imap_init", $options);
-
$this->storage->set_options($options);
$this->set_storage_prop();
}
diff --git a/program/include/rcube_plugin_api.php b/program/include/rcube_plugin_api.php
index c4b3d5734..9c3378e67 100644
--- a/program/include/rcube_plugin_api.php
+++ b/program/include/rcube_plugin_api.php
@@ -71,6 +71,7 @@ class rcube_plugin_api
'delete_identity' => 'identity_delete',
'save_identity' => 'identity_update',
'identity_save' => 'identity_update',
+ 'imap_init' => 'storage_init',
);
/**