Changeset 28976

Show
Ignore:
Timestamp:
15.04.2014 15:05:33 (5 years ago)
Author:
ak19
Message:

module variable is empty when the gti command is create-glihelp-zip-file

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/gti.pl

    r28755 r28976  
    4040my $gsdl_root_directory = "$ENV{'GSDLHOME'}"; 
    4141my $gti_log_file = &util::filename_cat($gsdl_root_directory, "etc", "gti.log"); 
    42 my $source_language_code = "en";  # This is non-negiotable 
     42my $source_language_code = "en";  # This is non-negotiable 
    4343 
    4444my $gti_translation_files = 
     
    119119 
    120120    # for GS3, set gsdl_root_dir to GSDL3HOME 
    121     if($module eq "gs3interface"){ 
     121    if($module && $module eq "gs3interface"){ # module is empty when the gti-command is create-glihelp-zip-file 
    122122    if($ENV{'GSDL3SRCHOME'}) { 
    123123        $gsdl_root_directory = (defined $ENV{'GSDL3HOME'}) ? $ENV{'GSDL3HOME'} : &util::filename_cat($ENV{'GSDL3SRCHOME'}, "web");