/[webpac2]/trunk/run.pl
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/run.pl

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

revision 968 by dpavlin, Fri Nov 2 13:11:35 2007 UTC revision 969 by dpavlin, Fri Nov 2 14:28:43 2007 UTC
# Line 347  foreach my $database ( sort keys %{ $con Line 347  foreach my $database ( sort keys %{ $con
347    
348                  my $type = lc($input->{type});                  my $type = lc($input->{type});
349    
350                  die "I know only how to handle input types ", join(",", $config->webpac('inputs') ), " not '$type'!\n" unless (grep(/$type/, $config->webpac('inputs')));                  # FIXME check if input module exists
351                    my $input_module = $input->{module};
352    
353                  my $input_module = $config->webpac('inputs')->{$type};                  if ( ! $input_module ) {
354                            if ( grep(/$type/, $config->webpac('inputs')) ) {
355                                    $input_module = $config->webpac('inputs')->{$type};
356                            } else {
357                                    $log->logdie("I know only how to handle input types ", join(",", $config->webpac('inputs') ), " not '$type'!" );
358                            }
359                    }
360    
361                  my @lookups = $parser->have_lookup_create($database, $input);                  my @lookups = $parser->have_lookup_create($database, $input);
362    

Legend:
Removed from v.968  
changed lines
  Added in v.969

  ViewVC Help
Powered by ViewVC 1.1.26