Changeset f219a20 in github


Ignore:
Timestamp:
Aug 5, 2008 7:09:11 AM (5 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
f0726b9
Parents:
8791df8
Message:

#1485229: fixed mailboxlist sorting for folder names with upper case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_imap.php

    r5b3dd41 rf219a20  
    25402540 
    25412541    // finally we must rebuild the list to move  
    2542     // subfolders of default folders to their place 
     2542    // subfolders of default folders to their place... 
     2543    // ...also do this for the rest of folders because 
     2544    // asort() is not properly sorting case sensitive names      
    25432545    while (list($key, $folder) = each($folders)) { 
    25442546      $a_out[] = $folder; 
    25452547      unset($folders[$key]); 
    2546       if (in_array(strtolower($folder), $this->default_folders_lc)) { 
    2547         foreach ($folders as $idx => $f) { 
    2548           if (strpos($f, $folder.$delimiter) === 0) { 
    2549             $a_out[] = $f; 
    2550             unset($folders[$idx]); 
    2551             } 
     2548      foreach ($folders as $idx => $f) { 
     2549        if (strpos($f, $folder.$delimiter) === 0) { 
     2550          $a_out[] = $f; 
     2551          unset($folders[$idx]); 
    25522552          } 
    2553         reset($folders);   
    2554         } 
     2553        } 
     2554      reset($folders);   
    25552555      } 
    25562556 
Note: See TracChangeset for help on using the changeset viewer.