This commit is contained in:
Andrew Nicols 2021-05-20 09:32:06 +08:00
commit da8787d68d

View File

@ -645,7 +645,8 @@ function enable_cli_maintenance_mode() {
} else {
$data = get_string('sitemaintenance', 'admin');
$data = bootstrap_renderer::early_error_content($data, null, null, null);
$data = bootstrap_renderer::plain_page(get_string('sitemaintenancetitle', 'admin', $SITE->fullname), $data);
$data = bootstrap_renderer::plain_page(get_string('sitemaintenancetitle', 'admin',
format_string($SITE->fullname, true, ['context' => context_system::instance()])), $data);
}
file_put_contents("$CFG->dataroot/climaintenance.html", $data);