Run imap_init plugin hook as deprecated hook; set $_SESSION['imap_host'] for backwards compat.

pull/1/head
thomascube 13 years ago
parent c321a955a7
commit a2c495618a

@ -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();
}

@ -71,6 +71,7 @@ class rcube_plugin_api
'delete_identity' => 'identity_delete',
'save_identity' => 'identity_update',
'identity_save' => 'identity_update',
'imap_init' => 'storage_init',
);
/**

Loading…
Cancel
Save