Changeset 16852


Ignore:
Timestamp:
2008-08-16T16:39:57+12:00 (16 years ago)
Author:
kjdon
Message:

no_block no longer affects blocking cover images. setting block_exp now switches off the default 'smart' blocking

File:
1 edited

Legend:

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

    r16847 r16852  
    414414    }
    415415   
    416     $self->store_block_files($filename_full_path, $block_hash) unless $self->{'no_blocking'};
     416    # if we have a block_exp, then this overrides the normal 'smart' blocking
     417    $self->store_block_files($filename_full_path, $block_hash) unless ($self->{'no_blocking'} || $self->{'block_exp'} ne "");
    417418
    418419    # block the cover image if there is one
    419420    if ($self->{'cover_image'}) {
    420     $self->block_cover_image($filename_full_path, $block_hash) unless $self->{'no_blocking'};
     421    $self->block_cover_image($filename_full_path, $block_hash);
    421422    }
    422423       
Note: See TracChangeset for help on using the changeset viewer.