From a7efafbb0e708e159e604e7a17f0b55238ea5966 Mon Sep 17 00:00:00 2001 From: Nami Arj Date: Tue, 19 Sep 2023 16:16:21 +0330 Subject: [PATCH] Update view.php Fix #116 description appearing twice in Moodle 4.x --- view.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/view.php b/view.php index 09155d1..cc12513 100755 --- a/view.php +++ b/view.php @@ -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'); }