diff options
Diffstat (limited to 'plugins/archive')
-rw-r--r-- | plugins/archive/archive.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/archive/archive.php b/plugins/archive/archive.php index 939faf8ba..5d6131188 100644 --- a/plugins/archive/archive.php +++ b/plugins/archive/archive.php @@ -110,12 +110,19 @@ class archive extends rcube_plugin function prefs_table($args) { + global $CURR_SECTION; + if ($args['section'] == 'folders') { $this->add_texts('localization'); - + $rcmail = rcmail::get_instance(); - $select = rcmail_mailbox_select(array('noselection' => '---', 'realnames' => true, - 'maxlength' => 30, 'exceptions' => array('INBOX'))); + + // load folders list when needed + if ($CURR_SECTION) + $select = rcmail_mailbox_select(array('noselection' => '---', 'realnames' => true, + 'maxlength' => 30, 'exceptions' => array('INBOX'))); + else + $select = new html_select(); $args['blocks']['main']['options']['archive_mbox'] = array( 'title' => $this->gettext('archivefolder'), |