mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
MDL-15950 MDL-15640 - SCORM player.php not inserting footer, Showing SCORM participation report. (thanks Urs Hunkler and Mitsuhiro Yoshida).
This commit is contained in:
parent
8f182eef86
commit
5b89dfbb74
@ -99,7 +99,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
add_to_log($course->id, 'scorm', 'view', "player.php?id=$cm->id&scoid=$sco->id", "$scorm->id");
|
||||
add_to_log($course->id, 'scorm', 'view', "player.php?id=$cm->id&scoid=$sco->id", "$scorm->id", $cm->id);
|
||||
|
||||
|
||||
$scoidstr = '&scoid='.$sco->id;
|
||||
$scoidpop = '&scoid='.$sco->id;
|
||||
@ -371,11 +372,5 @@
|
||||
?>
|
||||
</div> <!-- SCORM object -->
|
||||
</div> <!-- SCORM box -->
|
||||
</div> <!-- SCORM content -->
|
||||
<?php if (!empty($THEME->customcorners)) {
|
||||
print_container_end();
|
||||
} ?>
|
||||
</div> <!-- Content -->
|
||||
</div> <!-- Page -->
|
||||
</body>
|
||||
</html>
|
||||
</div> <!-- SCORM page -->
|
||||
<?php print_footer('none'); ?>
|
@ -73,5 +73,12 @@ function scorm_resize () {
|
||||
document.getElementById('scormobject').style.height = (winheight - totalheight) + 'px';
|
||||
}
|
||||
|
||||
// resize the content container too to move the footer below the SCORM content
|
||||
var contenti3 = document.getElementById('content-i3');
|
||||
if (contenti3) {
|
||||
contenti3.style.height = (winheight - totalheight + 30) + 'px';
|
||||
} else {
|
||||
document.getElementById('content').style.height = (winheight - totalheight + 30) + 'px';
|
||||
}
|
||||
}
|
||||
-->
|
||||
|
@ -47,7 +47,7 @@
|
||||
print_error('cannotcallscript');
|
||||
}
|
||||
|
||||
add_to_log($course->id, 'scorm', 'report', 'report.php?id='.$cm->id, $scorm->id);
|
||||
add_to_log($course->id, 'scorm', 'report', 'report.php?id='.$cm->id, $scorm->id, $cm->id);
|
||||
|
||||
if (!empty($user)) {
|
||||
$userdata = scorm_get_user_data($user);
|
||||
|
@ -54,7 +54,7 @@
|
||||
}
|
||||
$pagetitle = strip_tags($course->shortname.': '.format_string($scorm->name));
|
||||
|
||||
add_to_log($course->id, 'scorm', 'pre-view', 'view.php?id='.$cm->id, "$scorm->id");
|
||||
add_to_log($course->id, 'scorm', 'pre-view', 'view.php?id='.$cm->id, "$scorm->id", $cm->id);
|
||||
|
||||
if ((has_capability('mod/scorm:skipview', get_context_instance(CONTEXT_MODULE,$cm->id))) && scorm_simple_play($scorm,$USER)) {
|
||||
exit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user