Skip to content

Commit

Permalink
fix fails
Browse files Browse the repository at this point in the history
  • Loading branch information
TamaroWalter committed Mar 12, 2024
1 parent 397d407 commit 586cf03
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion classes/manager/mail_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ private static function send_post($userto, $post, array &$coursemodules, array &

// Preapare to actually send the post now. Build up the content.
$cleanname = str_replace('"', "'", strip_tags(format_string($moodleoverflow->name)));
$shortname = format_string($course->shortname, true, ['context' => course::instance($course->id)]);
$shortname = format_string($course->shortname, true, ['context' => context_course::instance($course->id)]);

// Define a header to make mails easier to track.
$emailmessageid = generate_email_messageid('moodlemoodleoverflow' . $moodleoverflow->id);
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
$returnto = moodleoverflow_go_back_to($url);

// Prepare the message to be displayed.
$shortname = format_string($course->shortname, true, ['context' => course::instance($course->id)]);
$shortname = format_string($course->shortname, true, ['context' => context_course::instance($course->id)]);
$notification = \core\output\notification::NOTIFY_SUCCESS;

// Redirect the user depending on the subscription state.
Expand Down
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ function moodleoverflow_send_mails() {

// Preapare to actually send the post now. Build up the content.
$cleanname = str_replace('"', "'", strip_tags(format_string($moodleoverflow->name)));
$shortname = format_string($course->shortname, true, ['context' => course::instance($course->id)]);
$shortname = format_string($course->shortname, true, ['context' => context_course::instance($course->id)]);

// Define a header to make mails easier to track.
$emailmessageid = generate_email_messageid('moodlemoodleoverflow' . $moodleoverflow->id);
Expand Down
2 changes: 1 addition & 1 deletion locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ function moodleoverflow_print_post($post, $discussion, $moodleoverflow, $cm, $co
$mustachedata->withinreviewperiod = $reviewable;

// Prepare the post.
$mustachedata->postcontent = format_text($post->message, $post->messageformat, context_module::instance($cm->id));
$mustachedata->postcontent = format_text($post->message, $post->messageformat, $modulecontext);

// Load the attachments.
$mustachedata->attachments = get_attachments($post, $cm);
Expand Down

0 comments on commit 586cf03

Please sign in to comment.