MDL-21432 backup - enable startdate offset now that UI and setting is available
authorEloy Lafuente <stronk7@moodle.org>
Thu, 22 Jul 2010 10:36:11 +0000 (10:36 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Thu, 22 Jul 2010 10:36:11 +0000 (10:36 +0000)
backup/util/plan/restore_structure_step.class.php

index 084591a..bbd4d58 100644 (file)
@@ -269,11 +269,7 @@ abstract class restore_structure_step extends restore_step {
         }
         // No cache, let's calculate the offset
         $original = $this->task->get_info()->original_course_startdate;
-        // TODO: Get startdate from settings
-        debugging ('review these lines of apply_date_offset() to start using the "course_startdate" setting', DEBUG_DEVELOPER);
-        // $setting  = $this->get_setting_value('course_startdate');
-        // TODO: Delete this line once we are getting the var above from settings
-        $setting = $original;
+        $setting  = $this->get_setting_value('course_startdate');
 
         // Original course has not startdate, offset = 0
         if (empty($original)) {