Fixing drift between CVS and git
authorMoodle HQ git importer <gitimport@cvs.moodle.org>
Mon, 6 Jul 2009 00:38:18 +0000 (00:38 +0000)
committerMoodle HQ git importer <gitimport@cvs.moodle.org>
Mon, 6 Jul 2009 00:38:18 +0000 (00:38 +0000)
mod/assignment/lib.php

index 3af7cfe..ffe7097 100644 (file)
@@ -2425,7 +2425,18 @@ function assignment_get_participants($assignmentid) {
     return ($students);
 }
 
     return ($students);
 }
 
-function assignment_pluginfile($course, $cminfo, $context, $filearea, $args) {
+/**
+ * Serves assingment submissions and otehr files.
+ *
+ * @param object $course
+ * @param object $cminfo
+ * @param object $context
+ * @param string $filearea
+ * @param array $args
+ * @param bool $forcedownload
+ * @return bool false if file not found, does not return if found - justsend the file
+ */
+function assignment_pluginfile($course, $cminfo, $context, $filearea, $args, $forcedownload) {
     global $CFG, $DB;
 
     if (!$assignment = $DB->get_record('assignment', array('id'=>$cminfo->instance))) {
     global $CFG, $DB;
 
     if (!$assignment = $DB->get_record('assignment', array('id'=>$cminfo->instance))) {