Changeset 13879


Ignore:
Timestamp:
2007-02-08T16:35:38+13:00 (17 years ago)
Author:
kjdon
Message:

fixed a bug in converttotype option handling

File:
1 edited

Legend:

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

    r13542 r13879  
    158158    my $type = "unknown";
    159159
    160 
    161     if ($converttotype ne "" && $filename =~ m/$converttotype$/) {
    162 
     160    if ($converttotype ne "" && $filename !~ m/$converttotype$/) {
    163161    $originalfilename = $filename;
    164162    $filename = &util::get_tmp_filename() . ".$converttotype";
     
    172170
    173171    $type = $converttotype;
     172    $file =~ s/\..*$/\.$type/;
    174173    }
    175174   
Note: See TracChangeset for help on using the changeset viewer.