--- /Users/daniele/Desktop/funzionando1.1.2/latest/moodle19/course/category.php 2008-12-12 00:03:22.000000000 +0100 +++ /Applications/MAMP/htdocs/moodle19/course/category.php 2009-02-26 14:48:59.000000000 +0100 @@ -85,8 +85,14 @@ $strcourses = get_string('courses'); $navlinks = array(); - $navlinks[] = array('name' => $strcategories, 'link' => 'index.php', 'type' => 'misc'); - $navlinks[] = array('name' => format_string($category->name), 'link' => null, 'type' => 'misc'); + $cattype = $category->visible ? "category" : "hiddencategory"; + $navlinks[] = array('name' => format_string($category->name), 'link' => null, 'type' => $cattype); + $cattree = clone($category); + while ($cattree->parent) { + $cattree = get_record("course_categories", "id", $cattree->parent); + $cattype = $cattree->visible ? "category" : "hiddencategory"; + array_unshift($navlinks, array('name' => format_string($cattree->name), 'link' => "category.php?id=$cattree->id", 'type' => $cattype)); + } $navigation = build_navigation($navlinks); if ($editingon && update_category_button()) {