thomascube
2012-01-16 a2c495618a75e306678d9682042f4159bd43c2fa
Run imap_init plugin hook as deprecated hook; set $_SESSION['imap_host'] for backwards compat.

2 files modified
6 ■■■■ changed files
program/include/rcmail.php 5 ●●●●● patch | view | raw | blame | history
program/include/rcube_plugin_api.php 1 ●●●● patch | view | raw | blame | history
program/include/rcmail.php
@@ -682,12 +682,11 @@
      $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();
program/include/rcube_plugin_api.php
@@ -71,6 +71,7 @@
    'delete_identity'   => 'identity_delete',
    'save_identity'     => 'identity_update',
    'identity_save'     => 'identity_update',
    'imap_init'         => 'storage_init',
  );
  /**