forked from lix-project/hydra
Merge pull request #338 from expipiplus1/apache-include
Enable apache style includes in the config file
This commit is contained in:
commit
b03e3c593c
|
@ -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 = {};
|
||||||
|
|
Loading…
Reference in a new issue