Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-34258: Plagiarism API now returns strings so mod_assign needs the…

…se updates
  • Loading branch information...
commit 9650334f2cf0f3ed97d5f1064ecec6dab5fd7df0 1 parent 37038fa
authored July 11, 2012

Showing 1 changed file with 2 additions and 5 deletions. Show diff stats Hide diff stats

  1. 7  mod/assign/locallib.php
7  mod/assign/locallib.php
@@ -1744,7 +1744,7 @@ private function view_grading_table() {
1744 1744
         if (!empty($CFG->enableplagiarism)) {
1745 1745
             /** Include plagiarismlib.php */
1746 1746
             require_once($CFG->libdir . '/plagiarismlib.php');
1747  
-            plagiarism_update_status($this->get_course(), $this->get_course_module());
  1747
+            $o .= plagiarism_update_status($this->get_course(), $this->get_course_module());
1748 1748
         }
1749 1749
 
1750 1750
         $actionformtext = $this->output->render($gradingactions);
@@ -1808,11 +1808,8 @@ private function plagiarism_print_disclosure() {
1808 1808
         if (!empty($CFG->enableplagiarism)) {
1809 1809
             /** Include plagiarismlib.php */
1810 1810
             require_once($CFG->libdir . '/plagiarismlib.php');
1811  
-            ob_start();
1812 1811
 
1813  
-            plagiarism_print_disclosure($this->get_course_module()->id);
1814  
-            $o = ob_get_contents();
1815  
-            ob_end_clean();
  1812
+            $o .= plagiarism_print_disclosure($this->get_course_module()->id);
1816 1813
         }
1817 1814
 
1818 1815
         return $o;

0 notes on commit 9650334

Please sign in to comment.
Something went wrong with that request. Please try again.