From 71aa9472eb17a767f24023fe30b2e1aaec795088 Mon Sep 17 00:00:00 2001 From: Eloy Lafuente Date: Thu, 22 Jul 2010 10:36:11 +0000 Subject: [PATCH] MDL-21432 backup - enable startdate offset now that UI and setting is available --- backup/util/plan/restore_structure_step.class.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/backup/util/plan/restore_structure_step.class.php b/backup/util/plan/restore_structure_step.class.php index 084591a9406..bbd4d581db0 100644 --- a/backup/util/plan/restore_structure_step.class.php +++ b/backup/util/plan/restore_structure_step.class.php @@ -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)) {