Skip to content

Commit

Permalink
MDL-34258: Plagiarism API now returns strings so mod_assign needs the…
Browse files Browse the repository at this point in the history
…se updates
  • Loading branch information
Damyon Wiese authored and Sam Hemelryk committed Jul 15, 2012
1 parent 4b791f1 commit 66681a5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mod/assign/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ private function view_grading_table() {
if (!empty($CFG->enableplagiarism)) {
/** Include plagiarismlib.php */
require_once($CFG->libdir . '/plagiarismlib.php');
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);
Expand Down Expand Up @@ -1808,11 +1808,8 @@ private function plagiarism_print_disclosure() {
if (!empty($CFG->enableplagiarism)) {
/** Include plagiarismlib.php */
require_once($CFG->libdir . '/plagiarismlib.php');
ob_start();

plagiarism_print_disclosure($this->get_course_module()->id);
$o = ob_get_contents();
ob_end_clean();
$o .= plagiarism_print_disclosure($this->get_course_module()->id);
}

return $o;
Expand Down

0 comments on commit 66681a5

Please sign in to comment.