From 6449371635ff8110c8aa00c29c951425f1ec782a Mon Sep 17 00:00:00 2001 From: thomasb 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. git-svn-id: https://svn.roundcube.net/trunk@5782 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcmail.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'roundcubemail/program/include/rcmail.php') diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index 7c01edf6f..0bf9cf496 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/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