Ignore:
Timestamp:
2010-12-09T00:10:10+13:00 (13 years ago)
Author:
max
Message:

Setting the values to store as block files is now done through an API call to BasePlugin. This way, anything uniform requirement (such as putting in both C:\... and c:\... entries for Windows) can be done in one place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/PagedImagePlugin.pm

    r23363 r23419  
    576576
    577577    if ($line =~ /imgfile=\"([^\"]+)\"/) {
    578         $block_hash->{'file_blocks'}->{$dir.$1} = 1;
     578        $self->block_filename($block_hash,$dir.$1);
    579579    }
    580580    if ($line =~ /txtfile=\"([^\"]+)\"/) {
    581         $block_hash->{'file_blocks'}->{$dir.$1} = 1;
     581        $self->block_filename($block_hash,$dir.$1);
    582582    }
    583583    }
     
    605605    # find the image file if there is one
    606606    if (defined $imgname && $imgname ne "") {
    607         $block_hash->{'file_blocks'}->{$dir.$imgname}=1;
     607        $self->block_filename($block_hash,$dir.$imgname);
    608608    }
    609609    # find the text file if there is one
    610610    if (defined $txtname && $txtname ne "") {
    611         $block_hash->{'file_blocks'}->{$dir.$txtname} = 1;
     611        $self->block_filename($block_hash,$dir.$txtname);
    612612    }
    613613    }
Note: See TracChangeset for help on using the changeset viewer.