Changeset 27159

Show
Ignore:
Timestamp:
05.04.2013 14:35:37 (7 years ago)
Author:
ak19
Message:

Fixing how the collection_directory which gets locked upon a call to lock_collection gets determined. The code was considering only the GS2 case.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/cgiactions/baseaction.pm

    r25097 r27159  
    345345    } 
    346346 
    347     my $gsdlhome = $ENV{'GSDLHOME'}; 
    348     my $collection_directory = &util::filename_cat($gsdlhome, "collect", $collection); 
     347    #my $gsdlhome = $ENV{'GSDLHOME'}; 
     348    #my $collection_directory = &util::filename_cat($gsdlhome, "collect", $collection); 
     349    my $site = $self->{'site'}; 
     350    my $collection_directory = $gsdl_cgi->get_collection_dir($site, $collection); 
    349351    $gsdl_cgi->checked_chdir($collection_directory); 
    350352