Permalink
Browse files

MDL-35255 mod_assign plagiarism api shift update_status call to after…

… header has been printed.
  • Loading branch information...
1 parent 569f1ad commit c792565b9d8ceead9cb3e502b5c410f61d74579c @danmarsden danmarsden committed Sep 5, 2012
Showing with 5 additions and 6 deletions.
  1. +5 −6 mod/assign/locallib.php
View
@@ -1769,19 +1769,18 @@ private function view_grading_table() {
$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 */
require_once($CFG->libdir . '/plagiarismlib.php');
$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));

0 comments on commit c792565

Please sign in to comment.