mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-35255 mod_assign plagiarism api shift update_status call to after header has been printed.
This commit is contained in:
parent
98157832bf
commit
4d48a65159
1 changed files with 5 additions and 6 deletions
|
@ -1762,6 +1762,11 @@ class assign {
|
||||||
$gradingoptionsdata->filter = $filter;
|
$gradingoptionsdata->filter = $filter;
|
||||||
$gradingoptionsform->set_data($gradingoptionsdata);
|
$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
|
// plagiarism update status apearring in the grading book
|
||||||
if (!empty($CFG->enableplagiarism)) {
|
if (!empty($CFG->enableplagiarism)) {
|
||||||
/** Include plagiarismlib.php */
|
/** Include plagiarismlib.php */
|
||||||
|
@ -1769,12 +1774,6 @@ class assign {
|
||||||
$o .= plagiarism_update_status($this->get_course(), $this->get_course_module());
|
$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
|
// load and print the table of submissions
|
||||||
if ($showquickgrading && $quickgrading) {
|
if ($showquickgrading && $quickgrading) {
|
||||||
$table = $this->output->render(new assign_grading_table($this, $perpage, $filter, 0, true));
|
$table = $this->output->render(new assign_grading_table($this, $perpage, $filter, 0, true));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue