Changeset 315 for trunk/gsdl/perllib/plugin.pm
- Timestamp:
- 1999-06-30T15:35:07+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugin.pm
r171 r315 32 32 33 33 sub read { 34 my ($pluginfo, $base_dir, $file, $metadata, $processor) = @_; 34 my ($pluginfo, $base_dir, $file, $metadata, $processor, $maxdocs) = @_; 35 36 my $rv = 0; 35 37 36 38 # pass this file by each of the plugins in turn until one 37 39 # is found which will process it 38 40 foreach $plugobj (@$pluginfo) { 39 if ($plugobj->read($pluginfo, $base_dir, $file, 40 $metadata, $processor)) { 41 return; 42 } 41 $rv = $plugobj->read($pluginfo, $base_dir, $file, 42 $metadata, $processor, $maxdocs); 43 return $rv if defined $rv; 43 44 } 44 45 45 46 if ($processor->{'verbosity'} >= 2) { 46 47 print STDERR "WARNING - no plugin could process " . 47 48 &util::filename_cat($base_dir,$file) . "\n"; 48 49 } 50 return 0; 49 51 } 50 52
Note:
See TracChangeset
for help on using the changeset viewer.