mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-21432 backup - enable startdate offset now that UI and setting is available
This commit is contained in:
parent
b1eaf633eb
commit
71aa9472eb
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user