Skip to content

Commit

Permalink
CONTRIB-8369 fix calendar entry formatting when graphics are present
Browse files Browse the repository at this point in the history
  • Loading branch information
bostelm committed Jul 25, 2024
1 parent 8f16575 commit e5bb848
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/model/slot.php
Original file line number Diff line number Diff line change
@@ -402,8 +402,9 @@ private function update_calendar() {
$courseid = $scheduler->get_courseid();

$baseevent = new \stdClass();
$baseevent->description = "$schedulername<br/><br/>$schedulerdescription";
$baseevent->format = 1;
$baseevent->description = "$schedulername<br/><br/>"
.format_module_intro('scheduler', $scheduler, $scheduler->get_cmid(), false);
$baseevent->format = FORMAT_HTML;
$baseevent->modulename = 'scheduler';
$baseevent->courseid = 0;
$baseevent->instance = $this->get_parent_id();

0 comments on commit e5bb848

Please sign in to comment.