summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-01-16 15:23:40 +0000
committerthomascube <thomas@roundcube.net>2012-01-16 15:23:40 +0000
commita2c495618a75e306678d9682042f4159bd43c2fa (patch)
tree1e48ac8bff66b11d7fa7e7e840ede6e6fa32cbaa /program/include/rcmail.php
parentc321a955a7b0f6d6b13ffaebf040a6c7091037ae (diff)
Run imap_init plugin hook as deprecated hook; set $_SESSION['imap_host'] for backwards compat.
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php5
1 files changed, 2 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();
}