/[webpac2]/trunk/lib/WebPAC/Config.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/WebPAC/Config.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 700 by dpavlin, Mon Sep 25 12:51:33 2006 UTC revision 967 by dpavlin, Fri Nov 2 13:11:35 2007 UTC
# Line 55  sub new { Line 55  sub new {
55    
56          $self->{path} ||= 'conf/config.yml';          $self->{path} ||= 'conf/config.yml';
57    
58            $log->logdie("can't open ", $self->{path}, ": $!") if ! -r $self->{path};
59    
60          $self->{config} = LoadFile($self->{path}) ||          $self->{config} = LoadFile($self->{path}) ||
61                  $log->logdie("can't open ",$self->{path}, ": $!");                  $log->logdie("can't open ",$self->{path}, ": $!");
62    
# Line 92  Which indexer are we using? Line 94  Which indexer are we using?
94    
95  sub use_indexer {  sub use_indexer {
96          my $self = shift;          my $self = shift;
         my $default = 'hyperestraier';  
97          return unless ($self->{config});          return unless ($self->{config});
98          return $self->{config}->{use_indexer} || $default;          return $self->{config}->{use_indexer} || undef;
99  }  }
100    
101  =head2 get  =head2 get

Legend:
Removed from v.700  
changed lines
  Added in v.967

  ViewVC Help
Powered by ViewVC 1.1.26