Changeset 16852

Show
Ignore:
Timestamp:
16.08.2008 16:39:57 (11 years ago)
Author:
kjdon
Message:

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

Files:
1 modified

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