Changeset 22814


Ignore:
Timestamp:
2010-08-31T12:31:39+12:00 (14 years ago)
Author:
kjdon
Message:

removes tidy_item_file from store_block_files as it makes the file new again (reads it in and writes it out) before we have worked out what is now/old, and means that it will always be reindexed

File:
1 edited

Legend:

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

    r22565 r22814  
    257257    my $xml_version = $self->is_xml_item_file($filename_full_path);
    258258   
    259     # do we need to do this? if we do it here, then don't need to do it later
    260     $self->tidy_item_file($filename_full_path);
     259    # do we need to do this?
     260    # does BOM interfere just with XML parsing? In that case don't need it here
     261    # if we do it here, we are modifying the file before we have worked out if
     262    # its new or not, so it will always be reimported.
     263    #$self->tidy_item_file($filename_full_path);
    261264
    262265    my ($dir, $file) = $filename_full_path =~ /^(.*?)([^\/\\]*)$/;
     
    301304    my $xml_version = $self->is_xml_item_file($filename_full_path);
    302305
    303     # have done this already in store_block_files
    304     #$self->tidy_item_file($filename_full_path);
     306    $self->tidy_item_file($filename_full_path);
    305307   
    306308    my $doc_obj;
Note: See TracChangeset for help on using the changeset viewer.