Skip to content

Commit

Permalink
Moodle plugin CI Improved.
Browse files Browse the repository at this point in the history
  • Loading branch information
raja-lmsace committed Apr 25, 2024
1 parent 745d1a5 commit a83e362
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,6 @@ public static function update_emailvars($templatetext, $subject, $course, $user,
$module = $DB->get_record('course_modules', ['id' => $mod->id]);
$name = $DB->get_field('modules', 'name', ['id' => $module->module]);
$mod->url = new moodle_url("/mod/$name/view.php", ['id' => $mod->id]);

if (\mod_pulse\automation\helper::create()->timemanagement_installed()) {
$userenrolments = ltool_timemanagement_get_course_user_enrollment($course->id, $user->id);
if (!empty($userenrolments)) {
$record = $DB->get_record('ltool_timemanagement_modules', ['cmid' => $mod->id ?? 0]);
if ($record) {
$dates = ltool_timemanagement_cal_coursemodule_managedates($record, $userenrolments[0]['timestart']);
$duedate = isset($dates['duedate']) ? userdate($dates['duedate']) : '';
}
}
}
$mod->duedate = $duedate ?? '';
}
}

Expand Down

0 comments on commit a83e362

Please sign in to comment.