summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-03-19 20:18:23 +0000
committeralecpl <alec@alec.pl>2010-03-19 20:18:23 +0000
commit63ab02a9f219f1e03ca47df57bae5bf0c9016e74 (patch)
tree44bc4ee9b370d6573e2acb9fcba5f38c25765cb7 /plugins
parentcca7b3fd025b79960a5a76b1a1c3f0a02e2da86f (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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/archive/archive.php13
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'),