Skip to content

Commit

Permalink
Merge branch 'MDL-69695' of https://github.com/paulholden/moodle into…
Browse files Browse the repository at this point in the history
… master
  • Loading branch information
sarjona committed Sep 28, 2020
2 parents 8223718 + 2aa4851 commit b1a2dd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/folder/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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) {
Expand Down

0 comments on commit b1a2dd1

Please sign in to comment.