diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-19 20:18:23 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-19 20:18:23 +0000 |
| commit | ef6583b0d51cd479d7abf1a780c61b046031fd97 (patch) | |
| tree | c1a1508e1582e83a28c0cabbfdfeb5ebc7b16ae6 /roundcubemail/plugins | |
| parent | 39e804c8b5583eb4eb192bcbe549dba5bc997419 (diff) | |
- hide threads related prefs when threads are not supported by IMAP server
- performance: don't load folders list when we don't need it
git-svn-id: https://svn.roundcube.net/trunk@3391 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/plugins')
| -rw-r--r-- | roundcubemail/plugins/archive/archive.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/roundcubemail/plugins/archive/archive.php b/roundcubemail/plugins/archive/archive.php index 939faf8ba..5d6131188 100644 --- a/roundcubemail/plugins/archive/archive.php +++ b/roundcubemail/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'), |
