Fix to print descriptions and commands consistently

This commit is contained in:
Ilia Rostovtsev
2020-09-08 12:48:09 +03:00
parent 8b765b497a
commit 7ad9321b8d
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ if ($in{'removenotify'}) {
$ttcmd = "<tt>".&html_escape($config{'reboot_command'})."</tt>";
if ($in{'confirm'}) {
print &ui_subheading(&text('reboot_exec', $ttcmd));
print &text('reboot_exec', $ttcmd);
&reboot_system();
&webmin_log("reboot");
}

View File

@@ -9,7 +9,7 @@ $access{'shutdown'} || &error($text{'shutdown_ecannot'});
$ttcmd = "<tt>".&html_escape($config{'shutdown_command'})."</tt>";
if ($in{'confirm'}) {
print &ui_subheading(&text('shutdown_exec', $ttcmd));
print &text('shutdown_exec', $ttcmd);
&shutdown_system();
&webmin_log("shutdown");
}