MDL-24329, the default setting should be set no matter if legacyfiles flag is on/off.

This commit is contained in:
Dongsheng Cai 2010-09-22 06:43:10 +00:00
parent 9fa5887214
commit b0d038ef28

View File

@ -42,10 +42,8 @@ if ($hassiteconfig
$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));
}
$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();