mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
Merge branch 'dev_MDL-33177_restore_warning' of git://github.com/dongsheng/moodle
This commit is contained in:
commit
198244e2d9
@ -145,7 +145,12 @@ abstract class backup_general_helper extends backup_helper {
|
||||
$info->original_course_startdate= $infoarr['original_course_startdate'];
|
||||
$info->original_course_contextid= $infoarr['original_course_contextid'];
|
||||
$info->original_system_contextid= $infoarr['original_system_contextid'];
|
||||
$info->include_file_references_to_external_content = $infoarr['include_file_references_to_external_content'];
|
||||
// Moodle backup file don't have this option before 2.3
|
||||
if (!empty($infoarr['include_file_references_to_external_content'])) {
|
||||
$info->include_file_references_to_external_content = 1;
|
||||
} else {
|
||||
$info->include_file_references_to_external_content = 0;
|
||||
}
|
||||
$info->type = $infoarr['details']['detail'][0]['type'];
|
||||
$info->format = $infoarr['details']['detail'][0]['format'];
|
||||
$info->mode = $infoarr['details']['detail'][0]['mode'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user