MDL-71626 admin: filter site fullname in CLI maintenance script.

This commit is contained in:
Paul Holden 2021-05-10 08:07:13 +01:00
parent ad8b3d2ba9
commit 605c8940a2

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);