mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-48096 scorm: Include section number in cm
This commit is contained in:
parent
b51ff393cd
commit
4df12b9372
@ -29,7 +29,7 @@ $newattempt = optional_param('newattempt', 'off', PARAM_ALPHA); // the user
|
||||
$displaymode = optional_param('display', '', PARAM_ALPHA);
|
||||
|
||||
if (!empty($id)) {
|
||||
if (! $cm = get_coursemodule_from_id('scorm', $id)) {
|
||||
if (! $cm = get_coursemodule_from_id('scorm', $id, 0, true)) {
|
||||
print_error('invalidcoursemodule');
|
||||
}
|
||||
if (! $course = $DB->get_record("course", array("id" => $cm->course))) {
|
||||
@ -45,7 +45,7 @@ if (!empty($id)) {
|
||||
if (! $course = $DB->get_record("course", array("id" => $scorm->course))) {
|
||||
print_error('coursemisconf');
|
||||
}
|
||||
if (! $cm = get_coursemodule_from_instance("scorm", $scorm->id, $course->id)) {
|
||||
if (! $cm = get_coursemodule_from_instance("scorm", $scorm->id, $course->id, true)) {
|
||||
print_error('invalidcoursemodule');
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user