Changeset 11090 for trunk/gsdl/perllib/plugins/ImagePlug.pm
- Timestamp:
- 2006-01-24T10:29:34+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/ImagePlug.pm
r10254 r11090 337 337 338 338 339 # The ImagePlug read() function. This function does all the right things 340 # to make general options work for a given plugin. It calls the process() 341 # function which does all the work specific to a plugin (like the old 342 # read functions used to do). Most plugins should define their own 343 # process() function and let this read() function keep control. 344 # 339 # The ImagePlug read() function. 345 340 # ImagePlug overrides read() because there is no need to read the actual 346 341 # text of the file in, because the contents of the file is not text... … … 356 351 my $outhandle = $self->{'outhandle'}; 357 352 358 my $filename = &util::filename_cat($base_dir, $file); 359 return 0 if $self->{'block_exp'} ne "" && $filename =~ /$self->{'block_exp'}/; 360 if ($filename !~ /$self->{'process_exp'}/ || !-f $filename) { 361 return undef; 362 } 353 #check process and block exps, smart block, etc 354 my ($block_status,$filename) = $self->read_block(@_); 355 return $block_status if ((!defined $block_status) || ($block_status==0)); 363 356 364 357 print STDERR "<Processing n='$file' p='ImagePlug'>\n" if ($gli);
Note:
See TracChangeset
for help on using the changeset viewer.