Skip to content

Commit d202a7b

Browse files
Nina fix show description once (#447)
* Add version check for showing activity description or not Moodle 4.0 displays the description of activities by default. * Removing intro completely for 4.0. Co-authored-by: Nina Herrmann <[email protected]>
1 parent d896424 commit d202a7b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

view.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,7 @@
6767
echo $questionnaire->renderer->header();
6868
$questionnaire->page->add_to_page('questionnairename', format_string($questionnaire->name));
6969

70-
// Print the main part of the page.
71-
if ($questionnaire->intro) {
72-
$questionnaire->page->add_to_page('intro', format_module_intro('questionnaire', $questionnaire, $cm->id));
73-
}
70+
// No need to print out intro in Moodle 4 and above.
7471

7572
$cm = $questionnaire->cm;
7673
$currentgroupid = groups_get_activity_group($cm);

0 commit comments

Comments
 (0)