Changeset 28976


Ignore:
Timestamp:
2014-04-15T15:05:33+12:00 (8 years ago)
Author:
ak19
Message:

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

File:
1 edited

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");
Note: See TracChangeset for help on using the changeset viewer.