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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user