Skip to content

Commit 1842a42

Browse files
authored
Merge pull request #51 from catalyst/add_height_of_description
Add height if the activity has description
2 parents d23cf25 + 276312c commit 1842a42

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

embed.php

+6
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@
8787
if ($cm->completion != 0) {
8888
$completiondisplay = true;
8989
}
90+
91+
// If there is intro for the activity, we will add height for the embed.
92+
if (!empty($content['intro'])) {
93+
$completiondisplay = true;
94+
}
95+
9096
// Configure page.
9197
$PAGE->set_url(new \moodle_url('/mod/hvp/embed.php', array('id' => $id)));
9298
$PAGE->set_title(format_string($content['title']));

0 commit comments

Comments
 (0)