mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-71626 admin: filter site fullname in CLI maintenance script.
This commit is contained in:
parent
61f9d3cac6
commit
e16b41d630
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue