bug fixes from previous commit
authorstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 9 Oct 2006 19:46:18 +0000 (19:46 +0000)
committerstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 9 Oct 2006 19:46:18 +0000 (19:46 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11890 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default/left_main.tpl

index 92e9030..2a251f5 100644 (file)
@@ -139,7 +139,7 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $indent_factor=0)
      * image based on whatever logic they see fit here.
      */
     $folder_icon = '';
-    if (!is_null($settings['iconThemePath'])) {
+    if (!is_null($icon_theme_path)) {
         switch (true) {
             case $box['IsInbox']:
                 $folder_icon = getIcon($icon_theme_path, 'inbox.png', '', $box['MailboxName']);
@@ -248,7 +248,7 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $indent_factor=0)
 
     if (!$box['IsCollapsed'] || $box['IsRoot']) {
         for ($i = 0; $i<sizeof($box['ChildBoxes']); $i++) {
-            $out .= buildMailboxTree($box['ChildBoxes'][$i], $settings, $indent_factor);
+            $out .= buildMailboxTree($box['ChildBoxes'][$i], $settings, $icon_theme_path, $indent_factor);
         }
     }