Skip to content

Commit

Permalink
Nina fix show description once (#447)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
mchurchward and NinaHerrmann authored Dec 20, 2022
1 parent d896424 commit d202a7b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@
echo $questionnaire->renderer->header();
$questionnaire->page->add_to_page('questionnairename', format_string($questionnaire->name));

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

$cm = $questionnaire->cm;
$currentgroupid = groups_get_activity_group($cm);
Expand Down

0 comments on commit d202a7b

Please sign in to comment.