Skip to content

Commit

Permalink
SCORM MDL-18626 - fix SCORM navigation breadcrumbs merged from HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Mar 27, 2009
1 parent 2788e58 commit abe1688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion mod/scorm/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
13 changes: 1 addition & 12 deletions mod/scorm/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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));
Expand Down

0 comments on commit abe1688

Please sign in to comment.