+ // 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;
+ }