mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00
MDL-75195 core: Added supportemail option to install_database.php
This commit is contained in:
parent
ef93325f27
commit
b914f01316
2 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue