mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
Merge branch 'MDL-49842-master' of git://github.com/xow/moodle
This commit is contained in:
commit
1d81e1afc0
@ -69,6 +69,7 @@ Options:
|
||||
--prefix=STRING Table prefix for above database tables. Default is mdl_
|
||||
--fullname=STRING The fullname of the site
|
||||
--shortname=STRING The shortname of the site
|
||||
--summary=STRING The summary to be displayed on the front page
|
||||
--adminuser=USERNAME Username for the moodle admin account. Default is admin
|
||||
--adminpass=PASSWORD Password for the moodle admin account,
|
||||
required in non-interactive mode.
|
||||
@ -252,6 +253,7 @@ list($options, $unrecognized) = cli_get_params(
|
||||
'prefix' => 'mdl_',
|
||||
'fullname' => '',
|
||||
'shortname' => '',
|
||||
'summary' => '',
|
||||
'adminuser' => 'admin',
|
||||
'adminpass' => '',
|
||||
'adminemail' => '',
|
||||
|
@ -517,4 +517,7 @@ function install_cli_database(array $options, $interactive) {
|
||||
if (isset($options['fullname']) and $options['fullname'] !== '') {
|
||||
$DB->set_field('course', 'fullname', $options['fullname'], array('format' => 'site'));
|
||||
}
|
||||
if (isset($options['summary'])) {
|
||||
$DB->set_field('course', 'summary', $options['summary'], array('format' => 'site'));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user