(http://moodle.org/bugs/bug.php?op=show&bugid=5713)
Merged from MOODLE_16_STABLE
error ("An error has occurred and the restore could not be completed!");
}
- if (!$restore->importing) {
- echo $output;
+ if (empty($restore->importing)) {
//Print final message
print_simple_box(get_string("restorefinished"),"center");
} else {
if (!defined('RESTORE_SILENTLY')) {
echo '<li>'.get_string('creatingblocks').'</li>';
}
+ $course_header->blockinfo = !empty($course_header->blockinfo) ? $course_header->blockinfo : NULL;
if (!$status = restore_create_blocks($restore, $info->backup_block_format, $course_header->blockinfo, $xml_file)) {
if (!defined('RESTORE_SILENTLY')) {
notify('Error while creating the course blocks');