From 78c2c3bb42a5285ca28935bd0b08bebefcf29271 Mon Sep 17 00:00:00 2001 From: Joshua Todd Cowper Date: Sun, 8 May 2016 22:38:00 +1000 Subject: [PATCH] MDL-51978 admin: default course format to topics Change default setting for default course format to topics, and also fix coding style issue on same line (75) by adding a space after comma Change default setting for default number of sections to 4 --- admin/settings/courses.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/settings/courses.php b/admin/settings/courses.php index 21ecab77915..2d0dd1b4080 100644 --- a/admin/settings/courses.php +++ b/admin/settings/courses.php @@ -72,13 +72,13 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) { $formcourseformats[$courseformat] = new lang_string('pluginname', "format_$courseformat"); } $temp->add(new admin_setting_configselect('moodlecourse/format', new lang_string('format'), new lang_string('coursehelpformat'), - 'weeks',$formcourseformats)); + 'topics', $formcourseformats)); $temp->add(new admin_setting_configtext('moodlecourse/maxsections', new lang_string('maxnumberweeks'), new lang_string('maxnumberweeks_desc'), 52)); $temp->add(new admin_settings_num_course_sections('moodlecourse/numsections', new lang_string('numberweeks'), - new lang_string('coursehelpnumberweeks'), 10)); + new lang_string('coursehelpnumberweeks'), 4)); $choices = array(); $choices['0'] = new lang_string('hiddensectionscollapsed');