# Returns a list of config hash refs from some file
sub get_config_file
{
-local ($file, $seen) = @_;
+my ($file, $seen) = @_;
# Convert sites-enabled to real path in sites-available
$file = &simplify_path(&resolve_links($file));
closedir(DIR);
foreach my $f (sort { $a cmp $b } @files) {
next if ($f =~ /^\./);
- push(@rv, &get_config_file("$file/$f"));
+ push(@rv, &get_config_file("$file/$f", $seen));
}
}
else {
foreach $inc (&find_directive_struct("Include", \@rv)) {
local @incs = &expand_apache_include($inc->{'words'}->[0]);
foreach my $ginc (@incs) {
- push(@rv, &get_config_file($ginc));
+ push(@rv, &get_config_file($ginc, $seen));
}
}