Skip to content

Commit

Permalink
Email Placeholders Updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
raja-lmsace committed Apr 25, 2024
1 parent a83e362 commit be5d76b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/vars.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];
}

Expand Down

0 comments on commit be5d76b

Please sign in to comment.