MDL-22895 backup: minor fixes
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 10 Apr 2012 23:47:53 +0000 (01:47 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 10 Apr 2012 23:47:53 +0000 (01:47 +0200)
backup/moodle2/backup_stepslib.php
backup/moodle2/restore_stepslib.php

index 13b7c8a..47d4040 100644 (file)
@@ -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
index ec821ba..1472012 100644 (file)
@@ -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 {