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/GMLPlug.pm

    r10254 r11090  
    8282    my $outhandle = $self->{'outhandle'};
    8383
    84     my $filename = $file;
    85     $filename = &util::filename_cat ($base_dir, $file) if $base_dir =~ /\w/;
    86 
    87     return 0 if $self->{'block_exp'} ne "" && $filename =~ /$self->{'block_exp'}/;
    88     if ($filename !~ /$self->{'process_exp'}/ || !-f $filename) {
    89     return undef;
    90     }
     84    #check process and block exps, smart block, etc
     85    my ($block_status,$filename) = $self->read_block(@_);   
     86    return $block_status if ((!defined $block_status) || ($block_status==0));
     87
    9188    $file =~ s/^[\/\\]+//; # $file often begins with / so we'll tidy it up
    9289
Note: See TracChangeset for help on using the changeset viewer.