Small fix for assignment regarding integration with upload class.
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/[email protected]/moodle--eduforge--1.3.3 Index of arch patches in this commit: [email protected]/moodle--eduforge--1.3.3--patch-67 2004-09-16 04:21:28 GMT Penny Leach <[email protected]> tiny fix for assignment integration Full logs: Revision: moodle--eduforge--1.3.3--patch-67 Archive: [email protected] Creator: Penny Leach <[email protected]> Date: Thu Sep 16 16:21:28 NZST 2004 Standard-date: 2004-09-16 04:21:28 GMT Modified-files: mod/assignment/upload.php New-patches: [email protected]/moodle--eduforge--1.3.3--patch-67 Summary: tiny fix for assignment integration Keywords:
This commit is contained in:
@@ -37,8 +37,8 @@
|
||||
$dir = assignment_file_area_name($assignment,$USER);
|
||||
require_once($CFG->dirroot.'/lib/uploadlib.php');
|
||||
$um = new upload_manager('newfile',true,false,$course,false,$assignment->maxbytes);
|
||||
$newfile_name = $um->get_new_filename();
|
||||
if ($um->process_file_uploads($dir)) {
|
||||
$newfile_name = $um->get_new_filename();
|
||||
if ($submission) {
|
||||
$submission->timemodified = time();
|
||||
$submission->numfiles = 1;
|
||||
|
||||
Reference in New Issue
Block a user