Commit 4a7bf0b7 authored by Ad Schellevis's avatar Ad Schellevis

(legacy config helpers) fix config section restore for opnsense config's

parent fd58c9d0
...@@ -418,6 +418,8 @@ function restore_config_section($section_name, $new_contents) ...@@ -418,6 +418,8 @@ function restore_config_section($section_name, $new_contents)
$xml = $xml['pfsense']; $xml = $xml['pfsense'];
} elseif ($xml['m0n0wall']) { } elseif ($xml['m0n0wall']) {
$xml = $xml['m0n0wall']; $xml = $xml['m0n0wall'];
} elseif ($xml['opnsense']) {
$xml = $xml['opnsense'];
} }
if ($xml[$section_name]) { if ($xml[$section_name]) {
$section_xml = $xml[$section_name]; $section_xml = $xml[$section_name];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment