diff --git a/classes/helper.php b/classes/helper.php index 9a043cf..c4ff58b 100644 --- a/classes/helper.php +++ b/classes/helper.php @@ -87,14 +87,6 @@ public static function update_emailvars($templatetext, $subject, $course, $user, $course->category = is_number($course->category) ? core_course_category::get($course->category)->get_formatted_name() : $course->category; - if (!empty($mod->id)) { - if ($DB->record_exists('course_modules', ['id' => $mod->id])) { - $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]); - } - } - $vars = new pulse_email_vars($user, $course, $sender, $mod); foreach ($amethods as $varscat => $placeholders) { diff --git a/lib/vars.php b/lib/vars.php index 2a6a4f2..8a10533 100644 --- a/lib/vars.php +++ b/lib/vars.php @@ -561,7 +561,7 @@ public static function site_data_fields() { public static function course_activities_data_fields() { return [ // Activities Fields. - 'Mod_Type', 'Mod_Name', 'Mod_Intro', 'Mod_Url', 'Mod_Duedate', + 'Mod_Type', 'Mod_Name', 'Mod_Intro', ]; }