*** sitemenu.module.orig	2009-02-03 04:50:07.000000000 +0200
--- sitemenu.module	2009-03-10 22:57:20.000000000 +0200
***************
*** 448,453 ****
--- 448,454 ----
    for ($m = 0; $m < count($tree); $m++) {
      $term = $tree[$m];
      
+     echo $term->depth;
      if ($term->depth > $old_depth) {
        $output .= "<ul class=\"menu\">\n";
        $ul++;
***************
*** 462,474 ****
  
      switch($vocab_type) {
        case SITEMENU_VOCAB_TYPE_IMAGE:
!         $path = 'image/tid/';
          break;
        case SITEMENU_VOCAB_TYPE_FORUM:
!         $path = 'forum/';
          break;
        default:
!         $path = 'taxonomy/term/';
          break;
      }
  
--- 463,475 ----
  
      switch($vocab_type) {
        case SITEMENU_VOCAB_TYPE_IMAGE:
!         $path = 'image/tid/' .  $term->tid;
          break;
        case SITEMENU_VOCAB_TYPE_FORUM:
!         $path = 'forum/' .  $term->tid;
          break;
        default:
!         $path = taxonomy_term_path($term);
          break;
      }
  
***************
*** 479,485 ****
        if (variable_get('sitemenu_child_content', 0)) {
          $term->tid .= '/all';
        }
!       $link = l($term->name . $count, $path . $term->tid,  array ("title" => $term->description));
      }
      else {
        if (isset($term->link)) {
--- 480,486 ----
        if (variable_get('sitemenu_child_content', 0)) {
          $term->tid .= '/all';
        }
!       $link = l($term->name . $count, $path,  array ("title" => $term->description));
      }
      else {
        if (isset($term->link)) {
***************
*** 487,493 ****
          $link = $term->link . $count;
        }
        else {
!         $link = l($term->name . $count, $path . $term->tid );
        }
      }
  
--- 488,494 ----
          $link = $term->link . $count;
        }
        else {
!         $link = l($term->name . $count, $path);
        }
      }
  
