mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
SCORM MDL-18626 - fix SCORM navigation breadcrumbs
This commit is contained in:
parent
2fbb7bf843
commit
66c7d3731f
2 changed files with 2 additions and 13 deletions
|
@ -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 {
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue