/[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 699 by dpavlin, Sun Sep 24 18:52:31 2006 UTC revision 700 by dpavlin, Mon Sep 25 12:51:33 2006 UTC
# Line 140  sub webpac { Line 140  sub webpac {
140          # ... do something with input config hash          # ... do something with input config hash
141    } );    } );
142    
143    This function will also modify C<< $input->{normalize} >> to
144    be C<ARRAY>, even with just one element.
145    
146  =cut  =cut
147    
148  sub iterate_inputs {  sub iterate_inputs {
# Line 162  sub iterate_inputs { Line 165  sub iterate_inputs {
165    
166                  foreach my $input (@inputs) {                  foreach my $input (@inputs) {
167                          $log->debug("iterating over input ", dump($input));                          $log->debug("iterating over input ", dump($input));
168                            if ( defined( $input->{normalize} ) && ref($input->{normalize}) ne 'ARRAY' ) {
169                                    $input->{normalize} = [ $input->{normalize} ];
170                            }
171                          $code_ref->($input, $database, $db_config);                          $code_ref->($input, $database, $db_config);
172                  }                  }
173          }          }

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

  ViewVC Help
Powered by ViewVC 1.1.26