From: mjollnir_ Date: Tue, 9 Nov 2004 21:02:39 +0000 (+0000) Subject: glossary attachments fix to allow optional file upload X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=36c2c0efee81642cca891bfdd364c300a78f4dbf;p=moodle.git glossary attachments fix to allow optional file upload --- diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index cead996270..5a7af74149 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -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)) {