mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
conifg -> conf
This commit is contained in:
parent
40142be90f
commit
ee096757bb
@ -675,7 +675,7 @@ function backup_config_section($section) {
|
||||
*/
|
||||
function restore_config_section($section, $new_contents) {
|
||||
global $config;
|
||||
config_mount_rw();
|
||||
conf_mount_rw();
|
||||
$fout = fopen("{$g['tmp_path']}/tmpxml","w");
|
||||
fwrite($fout, $new_contents);
|
||||
fclose($fout);
|
||||
@ -683,7 +683,7 @@ function restore_config_section($section, $new_contents) {
|
||||
$config[$section] = &$section_xml;
|
||||
unlink($g['tmp_path'] . "/tmpxml");
|
||||
write_config("Restored {$section} of config file (maybe from CARP partner)");
|
||||
config_mount_ro();
|
||||
conf_mount_ro();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user