summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/settings/func.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-01-04 11:16:54 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-01-04 11:16:54 +0000
commitfe07ed295958d50c766b0972e647e28d8cf1b4ba (patch)
tree5e60689b11153e07714cbebfe5afcdaec08aa9a8 /roundcubemail/program/steps/settings/func.inc
parent55c17c36edd4da23b16eab53d99f179c39a87f65 (diff)
- Use improved get_capability() syntax, saves CAPABILITY call in some cases
git-svn-id: https://svn.roundcube.net/trunk@4389 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/settings/func.inc')
-rw-r--r--roundcubemail/program/steps/settings/func.inc8
1 files changed, 3 insertions, 5 deletions
diff --git a/roundcubemail/program/steps/settings/func.inc b/roundcubemail/program/steps/settings/func.inc
index daa9fafa6..fb48e926b 100644
--- a/roundcubemail/program/steps/settings/func.inc
+++ b/roundcubemail/program/steps/settings/func.inc
@@ -334,9 +334,7 @@ function rcmail_user_prefs($current=null)
}
$RCMAIL->imap_connect();
- $threading_supported = $RCMAIL->imap->get_capability('thread=references')
- || $RCMAIL->imap->get_capability('thread=orderedsubject')
- || $RCMAIL->imap->get_capability('thread=refs');
+ $threading_supported = $RCMAIL->imap->get_capability('THREAD');
if (!isset($no_override['autoexpand_threads']) && $threading_supported) {
$field_id = 'rcmfd_autoexpand_threads';
@@ -346,8 +344,8 @@ function rcmail_user_prefs($current=null)
$select_autoexpand_threads->add(rcube_label('expand_only_unread'), 2);
$blocks['main']['options']['autoexpand_threads'] = array(
- 'title' => html::label($field_id, Q(rcube_label('autoexpand_threads'))),
- 'content' => $select_autoexpand_threads->show($config['autoexpand_threads']),
+ 'title' => html::label($field_id, Q(rcube_label('autoexpand_threads'))),
+ 'content' => $select_autoexpand_threads->show($config['autoexpand_threads']),
);
}