NOBUG: plagiarism api require $cm and $course in assignment render
authorDongsheng Cai <unoter@gmail.com>
Mon, 20 Sep 2010 03:43:47 +0000 (03:43 +0000)
committerDongsheng Cai <unoter@gmail.com>
Mon, 20 Sep 2010 03:43:47 +0000 (03:43 +0000)
mod/assignment/renderer.php

index 72d2026..16c5f0f 100644 (file)
@@ -80,6 +80,8 @@ class assignment_files implements renderable {
     public $context;
     public $dir;
     public $portfolioform;
+    public $cm;
+    public $course;
     public function __construct($context, $itemid, $filearea='submission') {
         global $USER, $CFG;
         require_once($CFG->libdir . '/portfoliolib.php');