$string['pluginadministration'] = 'Folder administration';
$string['pluginname'] = 'Folder';
$string['display'] = 'Display folder contents';
-$string['display_help'] = 'If you choose to display the folder contents on a course page, there will be no link to a separate page and the title will not be displayed.
+$string['display_help'] = 'If you choose to display the folder contents on a course page, there will be no link to a separate page.
The description will be displayed only if "Display description on course page" is checked.<br />
Also note that participants view actions can not be logged in this case.';
$string['displaypage'] = 'On a separate page';
}
}
- $output .= $this->output->box($this->render(new folder_tree($folder, $cm)),
+ $foldertree = new folder_tree($folder, $cm);
+ if ($folder->display == FOLDER_DISPLAY_INLINE) {
+ // Display module name as the name of the root directory.
+ $foldertree->dir['dirname'] = $cm->get_formatted_name();
+ }
+ $output .= $this->output->box($this->render($foldertree),
'generalbox foldertree');
// Do not append the edit button on the course page.