summaryrefslogtreecommitdiff
path: root/program/steps/mail/list.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2005-10-26 22:12:36 +0000
committerthomascube <thomas@roundcube.net>2005-10-26 22:12:36 +0000
commitb076a460e5418ae8f0db0b4b392d91853fd2a21b (patch)
tree2528fa73bddf1fe04f35192d611d2dd1f91d0671 /program/steps/mail/list.inc
parentfa3addfc5d03046cd173fde7e7875bad2badc6da (diff)
Finished message sorting and fixed some skin issues
Diffstat (limited to 'program/steps/mail/list.inc')
-rw-r--r--program/steps/mail/list.inc21
1 files changed, 4 insertions, 17 deletions
diff --git a/program/steps/mail/list.inc b/program/steps/mail/list.inc
index 5dd652d44..cb1d7a6c7 100644
--- a/program/steps/mail/list.inc
+++ b/program/steps/mail/list.inc
@@ -31,28 +31,15 @@ if ($sort = isset($_GET['_sort']) ? $_GET['_sort'] : false)
// yes, so set the sort vars
list($sort_col, $sort_order) = explode('_', $sort);
- // iloha mail sort func doesn't know about a 'Sender' col
- $sort_col = $sort_col == 'Sender' ? 'From' : $sort_col;
-
// set session vars for sort (so next page and task switch know how to sort)
$_SESSION['sort_col'] = $sort_col;
$_SESSION['sort_order'] = $sort_order;
}
else
- {
- // if switching folder, use default sorting
- if ($_GET['_refresh'] == '1')
- {
- $sort_col = 'date';
- $sort_order = 'desc';
- unset($_SESSION['sort_col'], $_SESSION['sort_order']);
- }
- else
- {
- // use session settings if set, defaults if not
- $sort_col = isset($_SESSION['sort_col']) ? $_SESSION['sort_col'] : 'date';
- $sort_order = isset($_SESSION['sort_order']) ? $_SESSION['sort_order'] : 'desc';
- }
+ {
+ // use session settings if set, defaults if not
+ $sort_col = isset($_SESSION['sort_col']) ? $_SESSION['sort_col'] : $CONFIG['message_sort_col'];
+ $sort_order = isset($_SESSION['sort_order']) ? $_SESSION['sort_order'] : $CONFIG['message_sort_order'];
}