Skip to content

Commit

Permalink
MDL-23308, added legacyfiles setting to course default settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Sep 10, 2010
1 parent b8312f7 commit c00280a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions admin/settings/courses.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,15 @@
} else {
$choices = get_max_upload_sizes();
}

$temp->add(new admin_setting_configselect('moodlecourse/maxbytes', get_string('maximumupload'), get_string('coursehelpmaximumupload'), key($choices), $choices));


if (!empty($CFG->legacyfilesinnewcourses)) {
$choices = array('0'=>get_string('no'), '2'=>get_string('yes'));
$temp->add(new admin_setting_configselect('moodlecourse/legacyfiles', get_string('courselegacyfiles'), get_string('courselegacyfiles_help'), key($choices), $choices));
}

$temp->add(new admin_setting_heading('groups', get_string('groups', 'group'), ''));
$choices = array();
$choices[NOGROUPS] = get_string('groupsnone', 'group');
Expand Down
1 change: 1 addition & 0 deletions course/edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ function definition() {
}
$mform->addElement('select', 'legacyfiles', get_string('courselegacyfiles'), $choices);
$mform->addHelpButton('legacyfiles', 'courselegacyfiles');
$mform->setDefault('legacyfiles', $courseconfig->legacyfiles);
}

if (!empty($CFG->allowcoursethemes)) {
Expand Down

0 comments on commit c00280a

Please sign in to comment.