mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-71626 admin: filter site fullname in CLI maintenance script.
This commit is contained in:
parent
ad8b3d2ba9
commit
605c8940a2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user