mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-40122 SCORM: replace SCORM course format with singleactivity
This commit is contained in:
parent
838d78a9ff
commit
3d1808c6e2
10 changed files with 35 additions and 234 deletions
|
@ -1421,6 +1421,12 @@ class restore_course_structure_step extends restore_structure_step {
|
|||
$data->theme = '';
|
||||
}
|
||||
|
||||
// Check if this is an old SCORM course format.
|
||||
if ($data->format == 'scorm') {
|
||||
$data->format = 'singleactivity';
|
||||
$data->activitytype = 'scorm';
|
||||
}
|
||||
|
||||
// Course record ready, update it
|
||||
$DB->update_record('course', $data);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue