Skip to content

Commit

Permalink
Merge pull request #46 from catalyst/duplicate_embed_titles
Browse files Browse the repository at this point in the history
Disable activity header in Moodle 4.0+
  • Loading branch information
jwalits authored Oct 16, 2023
2 parents 22bb9d4 + 3c34618 commit f7fb007
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
$PAGE->set_title(format_string($content['title']));
$PAGE->set_heading($course->fullname);

// Disable activity header on Moodle 4.0+
if ($CFG->branch >= 400) {
$PAGE->activityheader->disable();
}

// Embed specific page setup.
$PAGE->add_body_class('h5p-embed');
$PAGE->set_pagelayout('embedded');
Expand Down

0 comments on commit f7fb007

Please sign in to comment.