[dev] thread summary patch

Vilius Sumskas vilius at lnk.lt
Tue Aug 31 08:35:30 PDT 2004


Hi,

Thread Summary in message view was not respecting single thread
sorting/direction parameter in prefs. This patch solves it.

Oh yeah, and there is some strange behaviour with UI in thread sorting.
Bug filled: http://bugs.horde.org/ticket/?id=523

-- 
   Best Regards,

   Vilius Sumskas
   LNK TV system administrator
   mob.: +370 614 75713
   www.lnk.lt
-------------- next part --------------
Index: message.php
===================================================================
RCS file: /repository/agora/messages/message.php,v
retrieving revision 1.56
diff -u -r1.56 message.php
--- message.php	31 Aug 2004 11:45:27 -0000	1.56
+++ message.php	31 Aug 2004 14:41:46 -0000
@@ -35,8 +35,8 @@
 $message->logView();
 
 /* Get the sorting. */
-$sort_by = Agora::getSortBy('threads');
-$sort_dir = Agora::getSortDir('threads');
+$sort_by = Agora::getSortBy('thread');
+$sort_dir = Agora::getSortDir('thread');
 
 /* Get the message array and the sorted thread list. */
 $message_array = $message->getMessageArray();
@@ -45,7 +45,7 @@
 
 /* Set up the column headers. */
 $col_headers = array(array('message_thread' => _("Thread"), 'message_subject' => _("Subject")), 'message_author' => _("Posted By"), 'message_date' => _("Date"));
-$col_headers = Agora::formatColumnHeaders($col_headers, $sort_by, $sort_dir, 'threads');
+$col_headers = Agora::formatColumnHeaders($col_headers, $sort_by, $sort_dir, 'thread');
 
 /* Set up the template tags. */
 $threads = $messages->getThreadsUI($threads_list, _("Thread Summary"), $col_headers);


More information about the dev mailing list