Ignore:
Timestamp:
2006-01-24T10:29:34+13:00 (18 years ago)
Author:
kjdon
Message:

made all plugins that implement read() call read_block to check process_exp, block_exp, smart blocking, cover image blocking etc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/ImagePlug.pm

    r10254 r11090  
    337337
    338338
    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.
    345340# ImagePlug overrides read() because there is no need to read the actual
    346341# text of the file in, because the contents of the file is not text...
     
    356351    my $outhandle = $self->{'outhandle'};
    357352
    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));
    363356
    364357    print STDERR "<Processing n='$file' p='ImagePlug'>\n" if ($gli);
Note: See TracChangeset for help on using the changeset viewer.