From 8d9425149f2a390a1f9bddcd2fd7924e3a63b1dc Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 2 Oct 2006 08:44:58 +0000 Subject: [PATCH] fixed directory creation issues in advanced upload assignment --- mod/assignment/type/upload/assignment.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/assignment/type/upload/assignment.class.php b/mod/assignment/type/upload/assignment.class.php index 6127b1e5aa..ccc670e4f2 100644 --- a/mod/assignment/type/upload/assignment.class.php +++ b/mod/assignment/type/upload/assignment.class.php @@ -504,7 +504,7 @@ class assignment_upload extends assignment_base { if (data_submitted() and $this->can_manage_responsefiles()) { $dir = $this->file_area_name($userid).'/responses'; - check_dir_exists($CFG->dataroot.'/'.$dir,true); + check_dir_exists($CFG->dataroot.'/'.$dir, true, true); require_once($CFG->dirroot.'/lib/uploadlib.php'); $um = new upload_manager('newfile',false,true,$this->course,false,0,true); @@ -541,7 +541,7 @@ class assignment_upload extends assignment_base { } $dir = $this->file_area_name($USER->id); - check_dir_exists($CFG->dataroot.'/'.$dir.'/responses',true); // better to create now so that student submissions do not block it later + check_dir_exists($CFG->dataroot.'/'.$dir, true, true); // better to create now so that student submissions do not block it later require_once($CFG->dirroot.'/lib/uploadlib.php'); $um = new upload_manager('newfile',false,true,$this->course,false,$this->assignment->maxbytes,true); -- 2.39.5