Skip to content

Commit

Permalink
Fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
prasanna-lmsace committed Sep 25, 2023
1 parent 231c29c commit 39db571
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,9 @@ function mod_pulse_cm_info_view(cm_info $cm) {
$course = $cm->get_course();
$senderdata = \mod_pulse\task\sendinvitation::get_sender($course->id, $cm->context->id);
$sender = \mod_pulse\task\sendinvitation::find_user_sender($senderdata, $USER->id);
$user = clone $USER; // Prevent the cache issues.
list($subject, $content) = \mod_pulse\helper::update_emailvars($content, '', $course,
$USER, $pulse, $sender);
$user, $pulse, $sender);
$cm->set_content($content);
if (isset($pulse->cssclass) && $pulse->cssclass) {
$cm->set_extra_classes($pulse->cssclass);
Expand Down

0 comments on commit 39db571

Please sign in to comment.