Guest Roger Huston Posted October 7, 2009 Share Posted October 7, 2009 Hello, There is a minor bug in /includes/boxes/categories.inc.php. Most people will never see it, but if you have CSS code that depends on the proper use of Category ID's, then this will help you. Near line 67: OLD $box_content->parse('categories.a.li_start'); $box_content->assign('DATA', $treeData[$i]); $box_content->parse('categories.a'); if ($treeData[$i]['level']<$treeData[$i+1]['level']) { $box_content->parse('categories.a.ul_start'); } Near line 67: NEW - first two lines switched. $box_content->assign('DATA', $treeData[$i]); $box_content->parse('categories.a.li_start'); $box_content->parse('categories.a'); if ($treeData[$i]['level']<$treeData[$i+1]['level']) { $box_content->parse('categories.a.ul_start'); } The problem I had was that the first time through the loop, DATA was not assigned the CatID so it went through the loop with no value. The second time through the loop, the CAT ID for the second category was that of the first. In my template, I use custom icons for each top level category. By fixing this, I could use class="iconID{DATA.cat_id}" and have the category ID match up to the Admin value. I realize this is a minor fix, I post it here as I am not sure how to submit a bug. - Roger Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.