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.= '
-
';
+ $menu.= "\n";
}
else if ($level == $ref_level)
{
- $menu.= '
- ';
+ $menu.= "\n";
}
else if ($level < $ref_level)
{
// we may have to close more than one level at the same time...
- $menu.= str_repeat("\n
",($ref_level-$level));
$menu.= "\n";
+ $menu.= str_repeat("\n
",($ref_level-$level));
}
$ref_level = $level;
- $menu.= '
-
- ';
$url = add_session_id(PHPWG_ROOT_PATH.'category.php?cat='.$category['id']);
- $menu.= '
- '.$category['name'].'';
+ $menu.= "\n".''.$category['name'].'';
if ($category['nb_images'] > 0)
{
- $menu.= '
-
- ';
+
+ $menu.= str_repeat("\n",($level));
return $menu;
}