diff --git a/backup/moodle2/backup_stepslib.php b/backup/moodle2/backup_stepslib.php index 13b7c8a3340..47d40400162 100644 --- a/backup/moodle2/backup_stepslib.php +++ b/backup/moodle2/backup_stepslib.php @@ -802,7 +802,8 @@ class backup_calendarevents_structure_step extends backup_structure_step { // Return the root element (events) return $events; } - } +} + /** * structure step in charge of constructing the gradebook.xml file for all the gradebook config in the course * NOTE: the backup of the grade items themselves is handled by backup_activity_grades_structure_step diff --git a/backup/moodle2/restore_stepslib.php b/backup/moodle2/restore_stepslib.php index ec821ba8b3b..14720121cd0 100644 --- a/backup/moodle2/restore_stepslib.php +++ b/backup/moodle2/restore_stepslib.php @@ -1661,12 +1661,10 @@ class restore_calendarevents_structure_step extends restore_structure_step { } protected function after_execute() { - global $DB; // Add related files $this->add_related_files('calendar', 'event_description', 'event_description'); } - } - +} class restore_course_completion_structure_step extends restore_structure_step {