alecpl
2012-01-23 b3ad480bbc3d0796c18ffd0573107e9142adbd71
- Fix hook name mailboxes_list renamed to reserved name, use storage_folders and add an alias to deprecated hooks list


2 files modified
6 ■■■■■ changed files
program/include/rcube_imap.php 4 ●●●● patch | view | raw | blame | history
program/include/rcube_plugin_api.php 2 ●●●●● patch | view | raw | blame | history
program/include/rcube_imap.php
@@ -2508,7 +2508,7 @@
        $a_defaults = $a_out = array();
        // Give plugins a chance to provide a list of folders
        $data = rcmail::get_instance()->plugins->exec_hook('folders_list',
        $data = rcmail::get_instance()->plugins->exec_hook('storage_folders',
            array('root' => $root, 'name' => $name, 'filter' => $filter, 'mode' => 'LSUB'));
        if (isset($data['folders'])) {
@@ -2594,7 +2594,7 @@
        }
        // Give plugins a chance to provide a list of folders
        $data = rcmail::get_instance()->plugins->exec_hook('folders_list',
        $data = rcmail::get_instance()->plugins->exec_hook('storage_folders',
            array('root' => $root, 'name' => $name, 'filter' => $filter, 'mode' => 'LIST'));
        if (isset($data['folders'])) {
program/include/rcube_plugin_api.php
@@ -74,7 +74,9 @@
    'delete_identity'   => 'identity_delete',
    'save_identity'     => 'identity_update',
    'identity_save'     => 'identity_update',
    // to be removed after 0.8
    'imap_init'         => 'storage_init',
    'mailboxes_list'    => 'storage_folders',
  );
  /**