--- Webpacus/lib/Webpacus/Model/WebPAC.pm 2005/11/26 20:21:59 166 +++ Webpacus/lib/Webpacus/Model/WebPAC.pm 2005/11/26 21:11:41 167 @@ -68,9 +68,14 @@ $self->{est} = new WebPAC::Search::Estraier( %{ $est_cfg } ); - my $db_path = $c->config->{webpac}->{db_path}; - my $template_path = $c->config->{webpac}->{template_path}; - $self->{template_path} = $template_path; + # save config parametars in object + foreach my $f (qw/db_path template_path hits_on_page/) { + $self->{$f} = $c->config->{hyperestraier}->{$f} || + $c->config->{webpac}->{$f}; + $log->debug("self->{$f} = " . $self->{$f}); + } + my $db_path = $self->{db_path}; + my $template_path = $self->{template_path}; $log->debug("using db path '$db_path', template path '$template_path'"); @@ -99,11 +104,6 @@ "'" ); - # save config parametars in object - foreach my $f (qw/hits_on_page/) { - $self->{$f} = $c->config->{hyperestraier}->{$f}; - $log->debug("self->{$f} = " . $self->{$f}); - } return $self;