diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2012-07-24 12:30:14 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2012-07-24 12:30:14 +0200 |
commit | 8ed9d8098c06a5db85e35535c4d8bb55dc5f468a (patch) | |
tree | 00130c7e7027d0dc5b9a41f43c5813be7e40b3a4 /program | |
parent | 2d2af72c22e7b3aca2f90f10bcda1c73767d9656 (diff) |
Use dedicated getter to access storage object
Diffstat (limited to 'program')
-rw-r--r-- | program/include/main.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index 3f502753e..bf56cb222 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -886,13 +886,14 @@ function rcmail_mailbox_list($attrib) $attrib['folder_name'] = '*'; // get mailbox list - $mbox_name = $RCMAIL->storage->get_folder(); + $storage = $RCMAIL->get_storage(); + $mbox_name = $storage->get_folder(); // build the folders tree if (empty($a_mailboxes)) { // get mailbox list - $a_folders = $RCMAIL->storage->list_folders_subscribed('', $attrib['folder_name'], $attrib['folder_filter']); - $delimiter = $RCMAIL->storage->get_hierarchy_delimiter(); + $a_folders = $storage->list_folders_subscribed('', $attrib['folder_name'], $attrib['folder_filter']); + $delimiter = $storage->get_hierarchy_delimiter(); $a_mailboxes = array(); foreach ($a_folders as $folder) |