From be5d76b071df068f8e6afefd7e59a8e3d45739e5 Mon Sep 17 00:00:00 2001 From: "raja.lmsace@gmail.com" Date: Thu, 25 Apr 2024 18:36:46 +0530 Subject: [PATCH] Email Placeholders Updated. --- classes/helper.php | 8 -------- lib/vars.php | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) 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', ]; }