mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
system: backup lint failed on OSX, but not FreeBSD, huh?
This commit is contained in:
parent
e24d19706a
commit
e31965860f
@ -312,7 +312,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
write_config();
|
||||
convert_config();
|
||||
}
|
||||
if (!empty(pconfig['rebootafterrestore'])) {
|
||||
if (!empty($pconfig['rebootafterrestore'])) {
|
||||
$do_reboot = true;
|
||||
}
|
||||
$savemsg = gettext("The configuration area has been restored.");
|
||||
@ -323,7 +323,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
file_put_contents($filename, $data);
|
||||
$cnf = OPNsense\Core\Config::getInstance();
|
||||
if ($cnf->restoreBackup($filename)) {
|
||||
if (!empty(pconfig['rebootafterrestore'])) {
|
||||
if (!empty($pconfig['rebootafterrestore'])) {
|
||||
$do_reboot = true;
|
||||
}
|
||||
$config = parse_config();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user