From a2c495618a75e306678d9682042f4159bd43c2fa Mon Sep 17 00:00:00 2001 From: thomascube Date: Mon, 16 Jan 2012 15:23:40 +0000 Subject: Run imap_init plugin hook as deprecated hook; set $_SESSION['imap_host'] for backwards compat. --- program/include/rcmail.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'program/include/rcmail.php') 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(); } -- cgit v1.2.3