From e349a8c9ae4adfc1aab48a5461902242930da7bf Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 28 May 2012 14:17:57 +0200 Subject: Added browser capabilities detection, i.e. PDF and TIFF support --- program/steps/mail/func.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'program/steps/mail/func.inc') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 05d589503..fb438c9ed 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -81,8 +81,8 @@ if (empty($RCMAIL->action) || $RCMAIL->action == 'list') { $OUTPUT->set_env('search_request', $search_request); } - $search_mods = $RCMAIL->config->get('search_mods', $SEARCH_MODS_DEFAULT); - $OUTPUT->set_env('search_mods', $search_mods); + $search_mods = $RCMAIL->config->get('search_mods', $SEARCH_MODS_DEFAULT); + $OUTPUT->set_env('search_mods', $search_mods); } $threading = (bool) $RCMAIL->storage->get_threading(); @@ -115,6 +115,9 @@ if (empty($RCMAIL->action) || $RCMAIL->action == 'list') { if ($CONFIG['junk_mbox']) $OUTPUT->set_env('junk_mailbox', $CONFIG['junk_mbox']); + if (!empty($_SESSION['browser_caps'])) + $OUTPUT->set_env('browser_capabilities', $_SESSION['browser_caps']); + if (!$OUTPUT->ajax_call) $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage', 'copyingmessage', 'deletingmessage', 'markingmessage', -- cgit v1.2.3