mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-49842 install: Set front page summary to '' after cli install
This is to prevent front page summary from appearing as a 'new setting' after the first upgrade of a site installed via cli.
This commit is contained in:
parent
b6a76cd7cd
commit
65903c7607
@ -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