Changeset 11936
- Timestamp:
- 2006-06-19T16:59:23+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/cgi-bin/gliserver.pl
r11832 r11936 159 159 { 160 160 my $gsdl_cgi = shift(@_); 161 my $username = shift(@_); 161 162 my $collection = shift(@_); 162 my $username = shift(@_);163 163 164 164 my $steal_lock = $gsdl_cgi->clean_param("steal_lock"); … … 239 239 240 240 # Make sure the collection isn't locked by someone else 241 &lock_collection($gsdl_cgi, $ collection, $username);241 &lock_collection($gsdl_cgi, $username, $collection); 242 242 243 243 $gsdl_cgi->checked_chdir($collect_directory); … … 280 280 281 281 # Make sure the collection isn't locked by someone else 282 &lock_collection($gsdl_cgi, $ collection, $username);282 &lock_collection($gsdl_cgi, $username, $collection); 283 283 284 284 # Check that the collection file exists … … 319 319 320 320 # Make sure the collection isn't locked by someone else 321 &lock_collection($gsdl_cgi, $ collection, $username);321 &lock_collection($gsdl_cgi, $username, $collection); 322 322 323 323 # Zip up the collection … … 366 366 367 367 # Make sure the collection isn't locked by someone else 368 &lock_collection($gsdl_cgi, $ collection, $username);368 &lock_collection($gsdl_cgi, $username, $collection); 369 369 370 370 # Zip up the collection archives … … 458 458 459 459 # Make sure the collection isn't locked by someone else 460 &lock_collection($gsdl_cgi, $ collection, $username);460 &lock_collection($gsdl_cgi, $username, $collection); 461 461 462 462 # Zip up the collection file … … 566 566 567 567 # Make sure the collection isn't locked by someone else 568 &lock_collection($gsdl_cgi, $ collection, $username);568 &lock_collection($gsdl_cgi, $username, $collection); 569 569 570 570 &util::mv($source_file, $target_file); … … 611 611 612 612 # Make sure the collection isn't locked by someone else 613 &lock_collection($gsdl_cgi, $ collection, $username);613 &lock_collection($gsdl_cgi, $username, $collection); 614 614 615 615 &util::mk_dir($directory); … … 643 643 644 644 # Make sure the collection isn't locked by someone else (unless we're running mkcol.pl, of course) 645 &lock_collection($gsdl_cgi, $ collection, $username) unless ($script eq "mkcol.pl");645 &lock_collection($gsdl_cgi, $username, $collection) unless ($script eq "mkcol.pl"); 646 646 647 647 my $perl_args = $collection; … … 711 711 712 712 # Make sure the collection isn't locked by someone else 713 &lock_collection($gsdl_cgi, $ collection, $username);713 &lock_collection($gsdl_cgi, $username, $collection); 714 714 715 715 my $directory_path = &util::filename_cat($collection_directory, $directory);
Note:
See TracChangeset
for help on using the changeset viewer.