From: danmarsden Date: Fri, 27 Mar 2009 01:46:39 +0000 (+0000) Subject: SCORM MDL-18626 - fix SCORM navigation breadcrumbs X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=66c7d3731f7567e5fd277fd6cd4fafcdeb6111c2;p=moodle.git SCORM MDL-18626 - fix SCORM navigation breadcrumbs --- diff --git a/mod/scorm/report.php b/mod/scorm/report.php index a018cb2380..7c5e74fdc3 100755 --- a/mod/scorm/report.php +++ b/mod/scorm/report.php @@ -68,7 +68,7 @@ if (empty($b)) { if (empty($a)) { - $navigation = build_navigation('', $cm); + $navigation = build_navigation($strreport, $cm); print_header("$course->shortname: ".format_string($scorm->name), $course->fullname,$navigation, '', '', true); } else { diff --git a/mod/scorm/view.php b/mod/scorm/view.php index a61d54a2ed..25147a867d 100755 --- a/mod/scorm/view.php +++ b/mod/scorm/view.php @@ -42,16 +42,6 @@ $strscorms = get_string("modulenameplural", "scorm"); $strscorm = get_string("modulename", "scorm"); - if ($course->id != SITEID) { - - if ($scorms = get_all_instances_in_course('scorm', $course)) { - // The module SCORM activity with the least id is the course - $firstscorm = current($scorms); - if (!(($course->format == 'scorm') && ($firstscorm->id == $scorm->id))) { - $navlinks[] = array('name' => $strscorms, 'link' => "index.php?id=$course->id", 'type' => 'activity'); - } - } - } $pagetitle = strip_tags($course->shortname.': '.format_string($scorm->name)); add_to_log($course->id, 'scorm', 'pre-view', 'view.php?id='.$cm->id, "$scorm->id", $cm->id); @@ -64,8 +54,7 @@ // Print the page header // $navlinks = array(); - $navlinks[] = array('name' => format_string($scorm->name,true), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance'); - $navigation = build_navigation($navlinks); + $navigation = build_navigation($navlinks, $cm); print_header($pagetitle, $course->fullname, $navigation, '', '', true, update_module_button($cm->id, $course->id, $strscorm), navmenu($course, $cm));