/[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 688 by dpavlin, Sun Sep 24 18:52:31 2006 UTC revision 866 by dpavlin, Thu Jun 21 12:53:41 2007 UTC
# Line 92  Which indexer are we using? Line 92  Which indexer are we using?
92    
93  sub use_indexer {  sub use_indexer {
94          my $self = shift;          my $self = shift;
         my $default = 'hyperestraier';  
95          return unless ($self->{config});          return unless ($self->{config});
96          return $self->{config}->{use_indexer} || $default;          return $self->{config}->{use_indexer} || undef;
97  }  }
98    
99  =head2 get  =head2 get
# Line 140  sub webpac { Line 139  sub webpac {
139          # ... do something with input config hash          # ... do something with input config hash
140    } );    } );
141    
142    This function will also modify C<< $input->{normalize} >> to
143    be C<ARRAY>, even with just one element.
144    
145  =cut  =cut
146    
147  sub iterate_inputs {  sub iterate_inputs {
# Line 162  sub iterate_inputs { Line 164  sub iterate_inputs {
164    
165                  foreach my $input (@inputs) {                  foreach my $input (@inputs) {
166                          $log->debug("iterating over input ", dump($input));                          $log->debug("iterating over input ", dump($input));
167                            if ( defined( $input->{normalize} ) && ref($input->{normalize}) ne 'ARRAY' ) {
168                                    $input->{normalize} = [ $input->{normalize} ];
169                            }
170                          $code_ref->($input, $database, $db_config);                          $code_ref->($input, $database, $db_config);
171                  }                  }
172          }          }

Legend:
Removed from v.688  
changed lines
  Added in v.866

  ViewVC Help
Powered by ViewVC 1.1.26