Changeset 16383

Show
Ignore:
Timestamp:
14.07.2008 14:39:51 (11 years ago)
Author:
kjdon
Message:

make sure filename is in utf8 before calling generate_images

Files:
1 modified

Legend:

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

    r16010 r16383  
    9696 
    9797    my $outhandle = $self->{'outhandle'}; 
    98     my ($filename_full_path, $filename_no_path) = $self->get_full_filenames($base_dir, $file); 
     98    my ($filename_full_path, $filename_no_path) = &util::get_full_filenames($base_dir, $file); 
    9999    if ($self->{'image_conversion_available'} == 1) { 
    100     $self->generate_images($filename_full_path, $filename_no_path, $doc_obj, $doc_obj->get_top_section()); # should we check the return value? 
     100    $self->generate_images($filename_full_path, $self->filepath_to_utf8($filename_no_path), $doc_obj, $doc_obj->get_top_section()); # should we check the return value? 
    101101    } else { 
    102102    # do some basic stuff