Skip to content
Snippets Groups Projects
Unverified Commit f27ace99 authored by Svein-Tore Griff With's avatar Svein-Tore Griff With Committed by GitHub
Browse files

Merge pull request #476 from lucaboesch/doubledescription400fix

Omit double headings (and intro) on Moodle ≥ 4.0.0 fixes #450.
parents 88dbcd11 7ae552fb
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,7 @@ $PAGE->requires->css(new moodle_url(\mod_hvp\view_assets::getsiteroot() . '/mod/
// Print page HTML.
echo $OUTPUT->header();
if ($CFG->branch < 400) {
echo $OUTPUT->heading(format_string($content['title']));
echo '<div class="clearer"></div>';
......@@ -70,6 +71,7 @@ if (trim(strip_tags($content['intro'], '<img>'))) {
), $cm->id);
echo $OUTPUT->box_end();
}
}
$hashub = (has_capability('mod/hvp:share', $context) && !empty(get_config('mod_hvp', 'site_uuid')) && !empty(get_config('mod_hvp', 'hub_secret')));
$isshared = $content['shared'] === '1';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment