$options = array_merge($options, $charsets);
$temp->add(new admin_setting_configselect('sitemailcharset', get_string('sitemailcharset', 'admin'), get_string('configsitemailcharset','admin'), '', $options));
$temp->add(new admin_setting_configcheckbox('allowusermailcharset', get_string('allowusermailcharset', 'admin'), get_string('configallowusermailcharset', 'admin'), 0));
+$temp->add(new admin_setting_configtext('supportname', get_string('supportname', 'admin'), get_string('configsupportname', 'admin'), '', PARAM_NOTAGS));
+$temp->add(new admin_setting_configtext('supportemail', get_string('supportemail', 'admin'), get_string('configsupportemail', 'admin'), '', PARAM_NOTAGS));
$ADMIN->add('server', $temp, 100);
$result = $result && add_key($table, $key);
}
+ if ($result && $oldversion < 2007080101) {
+ if ($firstadmin = get_admin()) { // the person currently used for support emails
+ set_config('supportname', s(fullname($firstadmin))); // New settings same as old
+ set_config('supportemail', s($firstadmin->email));
+ }
+ }
+
/*
/// drop old gradebook tables
if ($result && $oldversion < 2007072209) {
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
- $version = 2007080100; // YYYYMMDD = date
+ $version = 2007080101; // YYYYMMDD = date
// XY = increments within a single day
$release = '1.9 dev'; // Human-friendly version name