Changeset 5782 in subversion


Ignore:
Timestamp:
Jan 16, 2012 10:23:40 AM (16 months ago)
Author:
thomasb
Message:

Run imap_init plugin hook as deprecated hook; set $_SESSIONimap_host? for backwards compat.

Location:
trunk/roundcubemail/program/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcmail.php

    r5781 r5782  
    683683      $options['ssl']      = $_SESSION['storage_ssl']; 
    684684      $options['password'] = $this->decrypt($_SESSION['password']); 
     685      // set 'imap_host' for backwards compatibility 
     686      $_SESSION[$driver.'_host'] = &$_SESSION['storage_host']; 
    685687    } 
    686688 
    687689    $options = $this->plugins->exec_hook("storage_init", $options); 
    688  
    689     // for backward compat. (deprecated, to be removed) 
    690     $options = $this->plugins->exec_hook("imap_init", $options); 
    691690 
    692691    $this->storage->set_options($options); 
  • trunk/roundcubemail/program/include/rcube_plugin_api.php

    r5672 r5782  
    7272    'save_identity'     => 'identity_update', 
    7373    'identity_save'     => 'identity_update', 
     74    'imap_init'         => 'storage_init', 
    7475  ); 
    7576 
Note: See TracChangeset for help on using the changeset viewer.