Skip to content

Commit

Permalink
Fix for MDL-8843: Converted the breadcrumb to an array
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-nielsen committed Mar 12, 2007
1 parent 03008bc commit 1244ef7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions mod/lesson/locallib.php
Expand Up @@ -275,16 +275,15 @@ function lesson_print_header($cm, $course, $lesson, $currenttab = '') {
}

/// Header setup
$navigation = array();
if ($course->id != SITEID) {
$navigation = "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\" title=\"$course->fullname\">$course->shortname</a> ->";
} else {
$navigation = '';
$navigation[$course->shortname] = "$CFG->wwwroot/course/view.php?id=$course->id";
}

$navigation[$strlessons] = "$CFG->wwwroot/mod/lesson/index.php?id=$course->id";
$navigation[$strname] = '';

/// Print header, heading, tabs and messages
print_header("$course->shortname: $strname", $course->fullname,
"$navigation <a href=\"index.php?id=$course->id\" title=\"$strlessons\">$strlessons</a> -> $strname",
print_header("$course->shortname: $strname", $course->fullname, $navigation,
'', $meta, true, $button, navmenu($course, $cm));

if (has_capability('mod/lesson:manage')) {
Expand Down

0 comments on commit 1244ef7

Please sign in to comment.