Enable apache style includes in the config file

This commit is contained in:
Joe Hermaszewski 2016-06-19 16:59:24 +01:00 committed by GitHub
parent 6bcbabb4df
commit 02baff987a

View file

@ -38,7 +38,10 @@ sub getHydraConfig {
return $hydraConfig if defined $hydraConfig; return $hydraConfig if defined $hydraConfig;
my $conf = $ENV{"HYDRA_CONFIG"} || (Hydra::Model::DB::getHydraPath . "/hydra.conf"); my $conf = $ENV{"HYDRA_CONFIG"} || (Hydra::Model::DB::getHydraPath . "/hydra.conf");
if (-f $conf) { if (-f $conf) {
my %h = new Config::General($conf)->getall; my %h = new Config::General( -ConfigFile => $conf
, -UseApacheInclude => 1
)->getall;
$hydraConfig = \%h; $hydraConfig = \%h;
} else { } else {
$hydraConfig = {}; $hydraConfig = {};