Skip to content

Commit f4b03f5

Browse files
committed
reread the config file since something is cloberring it
1 parent b43d728 commit f4b03f5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/VWF/Display.pm

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,13 @@ sub new
185185
# _ names included for legacy reasons, they will go away
186186
my $self = {
187187
_cachedir => $params->{cachedir},
188-
config => $config,
189-
_config => $config,
190188
info => $info,
191189
_info => $info,
192190
_logger => $params->{logger},
191+
config_dir => $config_dir,
193192
%{$params},
193+
config => $config,
194+
_config => $config,
194195
};
195196

196197
if(my $lingua = $params->{'lingua'}) {
@@ -364,6 +365,11 @@ sub get_template_path
364365
return $self->{_filename};
365366
}
366367

368+
# FIXME: reread the config file since something is cloberring it
369+
if(my $config = Config::Abstraction->new(config_dirs => [$self->{config_dir}], config_files => ['default', $self->{info}->domain_name()], logger => $self->{logger})) {
370+
$config = $config->all();
371+
$self->{config} = $self->{_config} = $config;
372+
}
367373
my $dir = $ENV{'root_dir'} || $self->{_config}->{root_dir} || $self->{_info}->root_dir();
368374
if($self->{_logger}) {
369375
$self->{_logger}->debug(__PACKAGE__, ': ', __LINE__, ": root_dir $dir");

0 commit comments

Comments
 (0)