MDL-76582 question: Allow response filearea to have different pattern
This commit is contained in:
@@ -622,7 +622,8 @@ class question_attempt {
|
||||
|
||||
// No files yet.
|
||||
$draftid = 0; // Will be filled in by file_prepare_draft_area.
|
||||
file_prepare_draft_area($draftid, $contextid, 'question', 'response_' . $name, null);
|
||||
$filearea = question_file_saver::clean_file_area_name('response_' . $name);
|
||||
file_prepare_draft_area($draftid, $contextid, 'question', $filearea, null);
|
||||
return $draftid;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user