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 |
|
|