From 5e0539cd53f8d519fe1e877a4c44d06033b8f23b Mon Sep 17 00:00:00 2001 From: alex-brainstorm Date: Tue, 30 Mar 2004 13:40:47 +0000 Subject: [PATCH] Move Thread View link to the upper header together with other links. Behaviour can be swapped for comparison. Also fix backslash in Flagged test. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6957 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 37 ++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 0538fd6e..5065241f 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -800,6 +800,23 @@ function mail_message_listing_beginning ($imapConnection, ''. ''; + /* build thread sorting links */ + if ($allow_thread_sort == TRUE) { + if ($thread_sort_messages == 1 ) { + $set_thread = 2; + $thread_name = _("Unthread View"); + } elseif ($thread_sort_messages == 0) { + $set_thread = 1; + $thread_name = _("Thread View"); + } + $thread_link_str = '  [' . $thread_name + . ']'; + } + else + $thread_link_str =''; + /* * This is the beginning of the message list table. * It wraps around all messages @@ -816,6 +833,7 @@ function mail_message_listing_beginning ($imapConnection, +
@@ -830,7 +848,7 @@ function mail_message_listing_beginning ($imapConnection, // display flag buttons only if supported if ($show_flag_buttons && $mbxresponse != NULL && - strpos($mbxresponse['PERMANENTFLAGS'], '\Flagged') !== FALSE) { + strpos($mbxresponse['PERMANENTFLAGS'], '\\Flagged') !== FALSE) { echo getButton('SUBMIT', 'markUnflagged',_("Unflag")); echo getButton('SUBMIT', 'markFlagged',_("Flag")); echo ' '; @@ -853,22 +871,9 @@ function mail_message_listing_beginning ($imapConnection, [' . $thread_name - . ']'; - } + //echo $thread_link_str; //previous behaviour getMbxList($imapConnection); - echo getButton('SUBMIT', 'moveButton',_("Move")) . "\n"; + echo getButton('SUBMIT', 'moveButton',_("Move")) . "\n"; ?> -- 2.25.1