- Timestamp:
- 2011-01-14T09:53:23+13:00 (13 years ago)
- Location:
- main/branches/64_bit_Greenstone/greenstone2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/branches/64_bit_Greenstone/greenstone2
- Property svn:mergeinfo changed
/main/trunk/greenstone2 merged: 23536,23544-23546,23553,23561-23562,23564,23571
- Property svn:mergeinfo changed
-
main/branches/64_bit_Greenstone/greenstone2/perllib/plugins/BasePlugin.pm
r23484 r23580 382 382 } 383 383 384 sub block_filename385 {386 my $self = shift(@_);387 my ($block_hash,$filename) = @_;388 389 if ($ENV{'GSDLOS'} =~ m/^windows$/) {390 391 my $lower_drive = $filename;392 $lower_drive =~ s/^([A-Z]):/\l$1:/i;393 394 my $upper_drive = $filename;395 $upper_drive =~ s/^([A-Z]):/\u$1:/i;396 397 $block_hash->{'file_blocks'}->{$lower_drive} = 1;398 $block_hash->{'file_blocks'}->{$upper_drive} = 1;399 }400 else {401 $block_hash->{'file_blocks'}->{$filename} = 1;402 }403 }404 384 405 385 # rename imported files and assoc files using URL encoding by default … … 438 418 439 419 if ($self->{'block_exp'} ne "" && $filename_full_path =~ /$self->{'block_exp'}/) { 440 $self->block_filename($block_hash,$filename_full_path);420 &util::block_filename($block_hash,$filename_full_path); 441 421 } 442 422 … … 458 438 } 459 439 if (&util::fd_exists($coverfile)) { 460 $self->block_filename($block_hash,$coverfile);440 &util::block_filename($block_hash,$coverfile); 461 441 } 462 442 }
Note:
See TracChangeset
for help on using the changeset viewer.