From 02baff987a5377e840b14acc72d6dd4fa13e0ec2 Mon Sep 17 00:00:00 2001 From: Joe Hermaszewski Date: Sun, 19 Jun 2016 16:59:24 +0100 Subject: [PATCH] Enable apache style includes in the config file --- src/lib/Hydra/Helper/Nix.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/Hydra/Helper/Nix.pm b/src/lib/Hydra/Helper/Nix.pm index 010635b1..cba34cc4 100644 --- a/src/lib/Hydra/Helper/Nix.pm +++ b/src/lib/Hydra/Helper/Nix.pm @@ -38,7 +38,10 @@ sub getHydraConfig { return $hydraConfig if defined $hydraConfig; my $conf = $ENV{"HYDRA_CONFIG"} || (Hydra::Model::DB::getHydraPath . "/hydra.conf"); if (-f $conf) { - my %h = new Config::General($conf)->getall; + my %h = new Config::General( -ConfigFile => $conf + , -UseApacheInclude => 1 + )->getall; + $hydraConfig = \%h; } else { $hydraConfig = {};