Ignore:
Timestamp:
2010-09-07T14:44:50+12:00 (14 years ago)
Author:
kjdon
Message:

no longer use filename_extension, as we should be using the original extension . eg when processing an odt doc with word plugin, the associated file used to be doc.doc, instead of doc.odt.

File:
1 edited

Legend:

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

    r22664 r22874  
    467467   
    468468    # need to check that not empty
    469     my $doc_ext = $self->{'filename_extension'};
     469    my ($doc_ext) = $file =~ /\.(\w+)$/;
    470470    my $file_type = "unknown";
    471471    $file_type = $self->{'file_type'} if defined $self->{'file_type'};
Note: See TracChangeset for help on using the changeset viewer.