diff --git a/mod/folder/lib.php b/mod/folder/lib.php index 03e200962db33..c450915cb1d2a 100644 --- a/mod/folder/lib.php +++ b/mod/folder/lib.php @@ -403,7 +403,7 @@ function folder_dndupload_handle($uploadinfo) { function folder_get_coursemodule_info($cm) { global $DB; if (!($folder = $DB->get_record('folder', array('id' => $cm->instance), - 'id, name, display, showexpanded, showdownloadfolder, intro, introformat'))) { + 'id, name, display, showexpanded, showdownloadfolder, forcedownload, intro, introformat'))) { return NULL; } $cminfo = new cached_cm_info(); @@ -413,6 +413,7 @@ function folder_get_coursemodule_info($cm) { $fdata = new stdClass(); $fdata->showexpanded = $folder->showexpanded; $fdata->showdownloadfolder = $folder->showdownloadfolder; + $fdata->forcedownload = $folder->forcedownload; if ($cm->showdescription && strlen(trim($folder->intro))) { $fdata->intro = $folder->intro; if ($folder->introformat != FORMAT_MOODLE) {