mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-19352 maintenance mode reimplemented - now using$CFG + cli script
This commit is contained in:
parent
1aa01caf90
commit
cfe3321562
@ -61,6 +61,7 @@ Example: \$sudo -u wwwrun /usr/bin/php admin/cli/maintenance.php
|
||||
}
|
||||
|
||||
cli_heading(get_string('sitemaintenancemode', 'admin')." ($CFG->wwwroot)");
|
||||
|
||||
if ($options['enable']) {
|
||||
set_config('maintenance_enabled', 1);
|
||||
echo get_string('sitemaintenanceon', 'admin')."\n";
|
||||
@ -72,7 +73,7 @@ if ($options['enable']) {
|
||||
}
|
||||
|
||||
if (!empty($CFG->maintenance_enabled)) {
|
||||
echo "Status: enabled\n"; // TODO: localize
|
||||
echo get_string('clistatusenabled', 'admin')."\n";
|
||||
} else {
|
||||
echo "Status: disabled\n"; // TODO: localize
|
||||
echo get_string('clistatusdisabled', 'admin')."\n";
|
||||
}
|
||||
|
@ -62,6 +62,8 @@ $string['cliincorrectvalueerror'] = 'Error, incorrect value \"$a->value\" for \"
|
||||
$string['clianswerno'] = 'n';
|
||||
$string['cliansweryes'] = 'y';
|
||||
$string['cliincorrectvalueretry'] = 'Incorrect value, please retry';
|
||||
$string['clistatusdisabled'] = 'Status: disabled';
|
||||
$string['clistatusenabled'] = 'Status: enabled';
|
||||
$string['clitypevalue'] = 'type value';
|
||||
$string['clitypevaluedefault'] = 'type value, press Enter to use default value ($a)';
|
||||
$string['cliupgradefinished'] = 'Command line upgrade completed successfully.';
|
||||
|
Loading…
x
Reference in New Issue
Block a user