Skip to content
Browse files

SCORM MDL-18626 - fix SCORM navigation breadcrumbs merged from HEAD

  • Loading branch information...
1 parent 2788e58 commit abe16888defcf270663bb4af374dee898535ff98 danmarsden committed Mar 27, 2009
Showing with 2 additions and 13 deletions.
  1. +1 −1 mod/scorm/report.php
  2. +1 −12 mod/scorm/view.php
View
2 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 {
View
13 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));

0 comments on commit abe1688

Please sign in to comment.
Something went wrong with that request. Please try again.