Respect option to add new configs to a different file

https://github.com/virtualmin/virtualmin-gpl/issues/324
This commit is contained in:
Jamie Cameron
2026-06-03 22:33:47 -07:00
parent fd79acd840
commit 95197bb0af

View File

@@ -364,7 +364,7 @@ if ($parent) {
}
else {
# Add to the global config file
$file = &get_config_file();
$file = $before ? $before->{'file'} : &get_add_config_file();
$lref = &read_file_lines($file);
if ($before) {
# Add before another block