From 6565d55a345ca0aebcb35750f83157d5cf3cb487 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Wed, 11 Apr 2012 01:47:53 +0200 Subject: [PATCH] MDL-22895 backup: minor fixes --- backup/moodle2/backup_stepslib.php | 3 ++- backup/moodle2/restore_stepslib.php | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) 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 {