Plagiarism API MDL-13680 move update_status call untill after print header so it can also print to page if required.

This commit is contained in:
Dan Marsden
2010-10-14 21:40:04 +00:00
parent 165dbc811c
commit 44729427ab
+3 -1
View File
@@ -1096,7 +1096,6 @@ class assignment_base {
self::FILTER_REQUIRE_GRADING => get_string('requiregrading', 'assignment'));
$updatepref = optional_param('updatepref', 0, PARAM_INT);
plagiarism_update_status($this->course, $this->cm);
if (isset($_POST['updatepref'])){
$perpage = optional_param('perpage', 10, PARAM_INT);
@@ -1139,6 +1138,9 @@ class assignment_base {
echo '<div class="usersubmissions">';
//hook to allow plagiarism plugins to update status/print links.
plagiarism_update_status($this->course, $this->cm);
/// Print quickgrade form around the table
if ($quickgrade) {
$formattrs = array();