# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/lib/weblib.php
--- moodle/lib/weblib.php Base (1.970.2.155)
+++ moodle/lib/weblib.php Locally Modified (Based On 1.970.2.155)
@@ -3806,6 +3830,18 @@
                 'type' => 'home');
     }
 
+    if (isset($COURSE) && $COURSE->category) {
+        $categories = get_records('course_categories','id',$COURSE->category,'','name',0,1);
+        if($categories) {
+            $cat = reset($categories);
+            $category_name = $cat->name;
+            $navlinks[] = array(
+                    'name' => format_string($category_name),
+                    'link' => "$CFG->wwwroot/course/category.php?id=$COURSE->category",
+                    'type' => 'coursecategory');
+        }
+    }
+
     // Course name, if appropriate.
     if (isset($COURSE) && $COURSE->id != SITEID) {
         $navlinks[] = array(
