MDL-66143 admin: Create setting for courses to support relative dates

This commit is contained in:
Jun Pataleta
2019-07-22 11:14:51 +08:00
parent 8d9614b341
commit afc87005cb
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -29,6 +29,11 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_configcheckbox('forceclean', new lang_string('forceclean', 'core_admin'),
new lang_string('forceclean_desc', 'core_admin'), 0));
// Relative course dates mode setting.
$temp->add(new admin_setting_configcheckbox('enablecourserelativedates',
new lang_string('enablecourserelativedates', 'core_admin'),
new lang_string('enablecourserelativedates_desc', 'core_admin'), 0));
$ADMIN->add('experimental', $temp);
// "debugging" settingpage