From db658fcbe1415abc860941d89b21f5461bc789c6 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 18 Nov 2005 22:42:35 +0000 Subject: - bug fixed: UL/LI tags were not correctly closed in category menu tree. git-svn-id: http://piwigo.org/svn/branches/branch-1_5@940 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_html.inc.php | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'include') diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 21dcf0834..c08ca525e 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -346,25 +346,21 @@ function get_html_menu_category($categories) $level = substr_count($category['global_rank'], '.') + 1; if ($level > $ref_level) { - $menu.= ' - ",($ref_level-$level)); } $ref_level = $level; - $menu.= ' - - '.$category['name'].''; + $menu.= "\n".''.$category['name'].''; if ($category['nb_images'] > 0) { - $menu.= ' - '; $menu.= '['.$category['nb_images'].']'; @@ -388,9 +382,8 @@ function get_html_menu_category($categories) $menu.= get_icon($category['date_last']); } } - - $menu.= ' - '; + + $menu.= str_repeat("\n",($level)); return $menu; } -- cgit v1.2.3