mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
(legacy config helpers) fix config section restore for opnsense config's
This commit is contained in:
parent
fd58c9d0cd
commit
4a7bf0b7c6
@ -418,6 +418,8 @@ function restore_config_section($section_name, $new_contents)
|
||||
$xml = $xml['pfsense'];
|
||||
} elseif ($xml['m0n0wall']) {
|
||||
$xml = $xml['m0n0wall'];
|
||||
} elseif ($xml['opnsense']) {
|
||||
$xml = $xml['opnsense'];
|
||||
}
|
||||
if ($xml[$section_name]) {
|
||||
$section_xml = $xml[$section_name];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user