plugins/libkolab

Thomas Brüderli bruederli at kolabsys.com
Wed Oct 16 16:44:41 CEST 2013


 plugins/libkolab/lib/kolab_storage.php |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit d230fa51f8070dadedcb415d2cdd8c2771177a48
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Wed Oct 16 16:43:44 2013 +0200

    Revert "Sort folders by hierarchy level first"
    
    This reverts commit 5fd5be61765cf863e4c1a04eaa862f14df168ea1.

diff --git a/plugins/libkolab/lib/kolab_storage.php b/plugins/libkolab/lib/kolab_storage.php
index 3d71922..2ebb64d 100644
--- a/plugins/libkolab/lib/kolab_storage.php
+++ b/plugins/libkolab/lib/kolab_storage.php
@@ -683,13 +683,11 @@ class kolab_storage
      */
     public static function sort_folders($folders)
     {
-        $delimiter = self::$imap->get_hierarchy_delimiter();
         $nsnames = array('personal' => array(), 'shared' => array(), 'other' => array());
         foreach ($folders as $folder) {
             $folders[$folder->name] = $folder;
             $ns = $folder->get_namespace();
-            $level = count(explode($delimiter, $folder->name));
-            $nsnames[$ns][$folder->name] = sprintf('%02d-%s', $level, strtolower(html_entity_decode(self::object_name($folder->name, $ns), ENT_COMPAT, RCUBE_CHARSET)));  // decode »
+            $nsnames[$ns][$folder->name] = strtolower(html_entity_decode(self::object_name($folder->name, $ns), ENT_COMPAT, RCUBE_CHARSET));  // decode »
         }
 
         $names = array();




More information about the commits mailing list