mirror of
https://github.com/moodle/moodle.git
synced 2025-05-11 02:36:05 +02:00
MDL-35255 mod_assign plagiarism api shift update_status call to after header has been printed.
This commit is contained in:
parent
569f1ad63b
commit
c792565b9d
@ -1769,6 +1769,11 @@ class assign {
|
||||
$gradingoptionsdata->filter = $filter;
|
||||
$gradingoptionsform->set_data($gradingoptionsdata);
|
||||
|
||||
$actionformtext = $this->output->render($gradingactions);
|
||||
$o .= $this->output->render(new assign_header($this->get_instance(),
|
||||
$this->get_context(), false, $this->get_course_module()->id, get_string('grading', 'assign'), $actionformtext));
|
||||
$o .= groups_print_activity_menu($this->get_course_module(), $CFG->wwwroot . '/mod/assign/view.php?id=' . $this->get_course_module()->id.'&action=grading', true);
|
||||
|
||||
// plagiarism update status apearring in the grading book
|
||||
if (!empty($CFG->enableplagiarism)) {
|
||||
/** Include plagiarismlib.php */
|
||||
@ -1776,12 +1781,6 @@ class assign {
|
||||
$o .= plagiarism_update_status($this->get_course(), $this->get_course_module());
|
||||
}
|
||||
|
||||
$actionformtext = $this->output->render($gradingactions);
|
||||
$o .= $this->output->render(new assign_header($this->get_instance(),
|
||||
$this->get_context(), false, $this->get_course_module()->id, get_string('grading', 'assign'), $actionformtext));
|
||||
$o .= groups_print_activity_menu($this->get_course_module(), $CFG->wwwroot . '/mod/assign/view.php?id=' . $this->get_course_module()->id.'&action=grading', true);
|
||||
|
||||
|
||||
// load and print the table of submissions
|
||||
if ($showquickgrading && $quickgrading) {
|
||||
$table = $this->output->render(new assign_grading_table($this, $perpage, $filter, 0, true));
|
||||
|
Loading…
x
Reference in New Issue
Block a user