MDL-75195 core: Added supportemail option to install_database.php

This commit is contained in:
raortegar 2023-07-05 20:11:37 +02:00
parent ef93325f27
commit b914f01316
2 changed files with 14 additions and 1 deletions

View file

@ -507,8 +507,10 @@ function install_cli_database(array $options, $interactive) {
}
// Set the support email address if specified.
if (isset($options['supportemail'])) {
if (!empty($options['supportemail'])) {
set_config('supportemail', $options['supportemail']);
} else if (!empty($options['adminemail'])) {
set_config('supportemail', $options['adminemail']);
}
// indicate that this site is fully configured