X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=mod%2Fassign%2Flocallib.php;h=e1e5104a0439f0a8ff903f9196db1ef0dff4742c;hp=a933ab523eb4e3aef1141a923e48f9522cca67b4;hb=4d48a651592ab18f63f78120fc73bec5ac6a0947;hpb=98157832bffe0dbb719c25cd6bae46b7131bacff diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index a933ab523eb..e1e5104a043 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -1762,6 +1762,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 */ @@ -1769,12 +1774,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));