MDL-62771 mod_forum: Fix to move print_disclosure

This commit is contained in:
John McGettrick 2018-07-06 09:30:34 +01:00
parent f61ee4e857
commit f3bf0ed5fc

View File

@ -1042,14 +1042,15 @@ if (!empty($parent)) {
} else {
if (!empty($forum->intro)) {
echo $OUTPUT->box(format_module_intro('forum', $forum, $cm->id), 'generalbox', 'intro');
if (!empty($CFG->enableplagiarism)) {
require_once($CFG->libdir.'/plagiarismlib.php');
echo plagiarism_print_disclosure($cm->id);
}
}
}
// Call print disclosure for enabled plagiarism plugins.
if (!empty($CFG->enableplagiarism)) {
require_once($CFG->libdir.'/plagiarismlib.php');
echo plagiarism_print_disclosure($cm->id);
}
if (!empty($formheading)) {
echo $OUTPUT->heading($formheading, 2, array('class' => 'accesshide'));
}