stekkel 21 年之前
父节点
当前提交
cb5ba8bbfd
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      functions/mailbox_display.php

+ 2 - 6
functions/mailbox_display.php

@@ -534,7 +534,7 @@ function showMessagesForMailbox($imapConnection, $mailbox, $num_msgs,
                                 $start_msg, $sort, $color, $show_num,
                                 $start_msg, $sort, $color, $show_num,
                                 $use_cache, $mode='') {
                                 $use_cache, $mode='') {
     global $msgs, $msort, $auto_expunge, $thread_sort_messages,
     global $msgs, $msort, $auto_expunge, $thread_sort_messages,
-           $disable_server_sort, $server_sort_order;
+           $allow_server_sort, $server_sort_order;
 
 
     /*
     /*
      * For some reason, on PHP 4.3+, this being unset, and set in the session causes havoc
      * For some reason, on PHP 4.3+, this being unset, and set in the session causes havoc
@@ -550,10 +550,6 @@ function showMessagesForMailbox($imapConnection, $mailbox, $num_msgs,
         $msgs = array();
         $msgs = array();
     }
     }
 
 
-    if (!isset(disable_server_sort)) {
-        $disable_server_sort = false;
-    }
-
     //$start = microtime();
     //$start = microtime();
     /* If autoexpunge is turned on, then do it now. */
     /* If autoexpunge is turned on, then do it now. */
     $mbxresponse = sqimap_mailbox_select($imapConnection, $mailbox);
     $mbxresponse = sqimap_mailbox_select($imapConnection, $mailbox);
@@ -585,7 +581,7 @@ function showMessagesForMailbox($imapConnection, $mailbox, $num_msgs,
 
 
         if ($thread_sort_messages == 1) {
         if ($thread_sort_messages == 1) {
             $mode = 'thread';
             $mode = 'thread';
-        } elseif (sqimap_capabilty($imapConnection,'SORT') && $disable_server_sort != 1) {
+        } elseif ($allow_server_sort == 1) {
             $mode = 'serversort';
             $mode = 'serversort';
         } else {
         } else {
             $mode = '';
             $mode = '';