Changeset 11833


Ignore:
Timestamp:
2006-05-18T12:00:19+12:00 (18 years ago)
Author:
kjdon
Message:

the test for windows scripting now tests if its true, rather than defined

File:
1 edited

Legend:

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

    r11680 r11833  
    153153    }
    154154    my $windows_scripting = $self->{'windows_scripting'};
     155    $windows_scripting = 0 unless defined $windows_scripting;
    155156    if ($classPluginName eq "PDFPlug") {
    156157    if ($convert_to_type eq "text" &&
     
    160161    }
    161162    } elsif ($classPluginName eq "WordPlug") {
    162     if (defined $self->{'windows_scripting'} && $ENV{'GSDLOS'} =~ /^windows$/i && $convert_to_type =~ /^(html|auto)$/) {
     163    if ($windows_scripting && $ENV{'GSDLOS'} =~ /^windows$/i && $convert_to_type =~ /^(html|auto)$/) {
    163164        # we use structured HTML, not normal html
    164165        $convert_to_type = "structuredhtml";
    165166    }
    166167    } elsif ($classPluginName eq "PPTPlug") {
    167     if (defined $self->{'windows_scripting'} && $ENV{'GSDLOS'} =~ /^windows$/i && $convert_to_type eq "auto") {
     168    if ($windows_scripting && $ENV{'GSDLOS'} =~ /^windows$/i && $convert_to_type eq "auto") {
    168169        # we use paged img
    169170        $convert_to_type = "pagedimg_jpg";
Note: See TracChangeset for help on using the changeset viewer.