Thomas Bruederli
2014-08-19 fc52af24f1418d6590a2d37a0d8cc31b123e38f6
plugins/subscriptions_option/subscriptions_option.php
@@ -9,7 +9,7 @@
 *
 * Add it to the plugins list in config/main.inc.php to enable the user option
 * The user option can be hidden and set globally by adding 'use_subscriptions'
 * to the the 'dont_override' configure line:
 * to the 'dont_override' configure line:
 * $rcmail_config['dont_override'] = array('use_subscriptions');
 * and then set the global preference
 * $rcmail_config['use_subscriptions'] = true; // or false
@@ -74,12 +74,9 @@
    function mailboxes_list($args)
    {
        $rcmail  = rcmail::get_instance();
        $rcmail = rcmail::get_instance();
        if (!$rcmail->config->get('use_subscriptions', true)) {
            $storage = $rcmail->get_storage();
            if ($storage->check_connection()) {
                $args['folders'] = $storage->conn->listMailboxes($args['root'], $args['name']);
            }
            $args['folders'] = $rcmail->get_storage()->list_folders_direct();
        }
        return $args;
    }