From ccfe8fddfeb93430bcdc08a6349b9dc7461c036b Mon Sep 17 00:00:00 2001 From: mark-nielsen Date: Mon, 12 Mar 2007 23:04:07 +0000 Subject: [PATCH] Merging in navigation to breadcrumb conversion fix for MDL-8843 --- mod/lesson/locallib.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index c5a7ca053f..e916e58a20 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -282,8 +282,18 @@ function lesson_print_header($cm, $course, $lesson, $currenttab = '') { $navigation[$strlessons] = "$CFG->wwwroot/mod/lesson/index.php?id=$course->id"; $navigation[$strname] = ''; + $urls = array(); + foreach($navigation as $text => $href) { + if (empty($href)) { + $urls[] = $text; + } else { + $urls[] = ''.$text.''; + } + } + $breadcrumb = implode(' -> ', $urls); + /// Print header, heading, tabs and messages - print_header("$course->shortname: $strname", $course->fullname, $navigation, + print_header("$course->shortname: $strname", $course->fullname, $breadcrumb, '', $meta, true, $button, navmenu($course, $cm)); if (has_capability('mod/lesson:manage')) { -- 2.39.5