mirror of
https://github.com/moodle/moodle.git
synced 2025-02-02 14:19:07 +01:00
glossary attachments fix to allow optional file upload
This commit is contained in:
parent
a35f1e65a8
commit
36c2c0efee
@ -1053,7 +1053,7 @@ function glossary_add_attachment($entry, $inputname) {
|
||||
}
|
||||
|
||||
require_once($CFG->dirroot.'/lib/uploadlib.php');
|
||||
$um = new upload_manager($inputname,true,false,$course,false,0);
|
||||
$um = new upload_manager($inputname,true,false,$course,false,0,false,true);
|
||||
$dir = glossary_file_area_name($entry);
|
||||
|
||||
if ($um->process_file_uploads($dir)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user