mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-41611 mod_forum: Display inline available when supported
This commit is contained in:
parent
d9203fb775
commit
98e9e91505
@ -54,6 +54,10 @@ class mod_folder_mod_form extends moodleform_mod {
|
||||
array(FOLDER_DISPLAY_PAGE => get_string('displaypage', 'mod_folder'),
|
||||
FOLDER_DISPLAY_INLINE => get_string('displayinline', 'mod_folder')));
|
||||
$mform->addHelpButton('display', 'display', 'mod_folder');
|
||||
if (!$this->courseformat->has_view_page()) {
|
||||
$mform->setConstant('display', FOLDER_DISPLAY_PAGE);
|
||||
$mform->hardFreeze('display');
|
||||
}
|
||||
$mform->setExpanded('content');
|
||||
|
||||
// Adding option to show sub-folders expanded or collapsed by default.
|
||||
|
Loading…
x
Reference in New Issue
Block a user