Permalink
Browse files

MDL-38632 folder: observe show_expanded on course page

  • Loading branch information...
1 parent 373a8e0 commit d86db37c44f065b48abf5294e46c2e7f3c3c5618 @stronk7 stronk7 committed Mar 21, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/folder/lib.php
View
@@ -426,14 +426,15 @@ 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, intro, introformat'))) {
+ 'id, name, display, show_expanded, intro, introformat'))) {
return NULL;
}
$cminfo = new cached_cm_info();
$cminfo->name = $folder->name;
if ($folder->display == FOLDER_DISPLAY_INLINE) {
// prepare folder object to store in customdata
$fdata = new stdClass();
+ $fdata->show_expanded = $folder->show_expanded;
if ($cm->showdescription && strlen(trim($folder->intro))) {
$fdata->intro = $folder->intro;
if ($folder->introformat != FORMAT_MOODLE) {

0 comments on commit d86db37

Please sign in to comment.