Allow submission attachments to be stored in subfolders

This commit is contained in:
David Mudrak
2010-01-04 18:08:38 +00:00
parent 29dc43e7e4
commit 75ff50df87
+1 -1
View File
@@ -71,7 +71,7 @@ if ($submission->id and ($ownsubmission or $canviewall or $isreviewer)) {
$maxfiles = $workshop->nattachments;
$maxbytes = $workshop->maxbytes;
$contentopts = array('trusttext' => true, 'subdirs' => false, 'maxfiles' => $maxfiles, 'maxbytes' => $maxbytes);
$attachmentopts = array('subdirs' => false, 'maxfiles'=>$maxfiles, 'maxbytes'=>$maxbytes);
$attachmentopts = array('subdirs' => true, 'maxfiles'=>$maxfiles, 'maxbytes'=>$maxbytes);
$submission = file_prepare_standard_editor($submission, 'content', $contentopts, $PAGE->context,
'workshop_submission_content', $submission->id);
$submission = file_prepare_standard_filemanager($submission, 'attachment', $attachmentopts, $PAGE->context,