mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-62771 mod_forum: Fix to move print_disclosure
This commit is contained in:
parent
f61ee4e857
commit
f3bf0ed5fc
@ -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'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user