]> git.mjollnir.org Git - moodle.git/commitdiff
Reviewed breadcrumb in HEAD. Page name was missing. MDL-16331
authorstronk7 <stronk7>
Mon, 29 Sep 2008 22:38:30 +0000 (22:38 +0000)
committerstronk7 <stronk7>
Mon, 29 Sep 2008 22:38:30 +0000 (22:38 +0000)
mod/wiki/view.php

index 375989a622afa4921bb7f243d90f1e33026d17a9..d92e416d002bc97e25cff98059ba067b8e04d2e2 100644 (file)
 
     $strwikis = get_string("modulenameplural", "wiki");
     $strwiki  = get_string("modulename", "wiki");
-    
-    $navigation = build_navigation('', $cm);
+
+    $navlinks = array();
+/// Add page name if not main page
+    if ($ewiki_title != $wiki->name) {
+        $navlinks[] = array('name' => format_string($ewiki_title), 'link' => '', 'type' => 'title');
+    }
+
+    $navigation = build_navigation($navlinks, $cm);
     print_header_simple($ewiki_title?$ewiki_title:format_string($wiki->name), "", $navigation,
                 "", "", $cacheme, update_module_button($cm->id, $course->id, $strwiki),
                 navmenu($course, $cm));