# 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.174)
+++ moodle/lib/weblib.php Locally Modified (Based On 1.970.2.174)
@@ -3848,6 +3848,15 @@
                 'type' => 'home');
     }
 
+    // Categrory Name, if appropriate.
+    if (!empty($COURSE->category) && $COURSE->id != SITEID) {
+        $categoryname = get_field('course_categories', 'name', 'id', $COURSE->category);
+        $navlinks[] = array(
+            'name' => format_string($categoryname),
+            'link' => "$CFG->wwwroot/course/category.php?id={$COURSE->category}",
+            'type' => 'category'); 
+    }
+
     // Course name, if appropriate.
     if (isset($COURSE) && $COURSE->id != SITEID) {
         $navlinks[] = array(
