Skip to content

Commit

Permalink
Update view.php
Browse files Browse the repository at this point in the history
Fix #116 description appearing twice in Moodle 4.x
  • Loading branch information
namiarj authored Sep 19, 2023
1 parent 8cfd35e commit a7efafb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion view.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@

echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($activityrecord->name));
if (!empty($dialogue->activityrecord->intro)) {
// Display description in intro only if moodle version < 4.0 is used.
if (!empty($dialogue->activityrecord->intro) && $CFG->version < 2022041900) {
echo $OUTPUT->box(format_module_intro('dialogue', $dialogue->activityrecord, $cm->id), 'generalbox', 'intro');
}

Expand Down

0 comments on commit a7efafb

Please sign in to comment.