Fix so temp. subscriptions aren't added to mail folders list
This commit is contained in:
parent
d07938b662
commit
c401074cbb
1 changed files with 4 additions and 4 deletions
|
@ -850,7 +850,7 @@ class kolab_storage
|
||||||
if (!$filter) {
|
if (!$filter) {
|
||||||
// Get ALL folders list, standard way
|
// Get ALL folders list, standard way
|
||||||
if ($subscribed) {
|
if ($subscribed) {
|
||||||
$folders = self::_imap_list_subscribed($root, $mbox);
|
$folders = self::_imap_list_subscribed($root, $mbox, $filter);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$folders = self::_imap_list_folders($root, $mbox);
|
$folders = self::_imap_list_folders($root, $mbox);
|
||||||
|
@ -882,7 +882,7 @@ class kolab_storage
|
||||||
|
|
||||||
// Get folders list
|
// Get folders list
|
||||||
if ($subscribed) {
|
if ($subscribed) {
|
||||||
$folders = self::_imap_list_subscribed($root, $mbox);
|
$folders = self::_imap_list_subscribed($root, $mbox, $filter);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$folders = self::_imap_list_folders($root, $mbox);
|
$folders = self::_imap_list_folders($root, $mbox);
|
||||||
|
@ -944,12 +944,12 @@ class kolab_storage
|
||||||
* Wrapper for rcube_imap::list_folders_subscribed()
|
* Wrapper for rcube_imap::list_folders_subscribed()
|
||||||
* with support for temporarily subscribed folders
|
* with support for temporarily subscribed folders
|
||||||
*/
|
*/
|
||||||
protected static function _imap_list_subscribed($root, $mbox)
|
protected static function _imap_list_subscribed($root, $mbox, $filter = null)
|
||||||
{
|
{
|
||||||
$folders = self::$imap->list_folders_subscribed($root, $mbox);
|
$folders = self::$imap->list_folders_subscribed($root, $mbox);
|
||||||
|
|
||||||
// add temporarily subscribed folders
|
// add temporarily subscribed folders
|
||||||
if (self::$with_tempsubs && is_array($_SESSION['kolab_subscribed_folders'])) {
|
if ($filter != 'mail' && self::$with_tempsubs && is_array($_SESSION['kolab_subscribed_folders'])) {
|
||||||
$folders = array_unique(array_merge($folders, $_SESSION['kolab_subscribed_folders']));
|
$folders = array_unique(array_merge($folders, $_SESSION['kolab_subscribed_folders']));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue