Ignore:
Timestamp:
02/28/11 20:46:00 (2 years ago)
Author:
KennethLavrsen
Message:

Item9983: Reverting the fix that is claimed to be unsafe in persistant environment
I have to revert it manually as other fixes were in the checkin. Taking 2-3 files at a time.
If someone have negative feelings about this then I can only say that this urgent bug has been
unattented since xmas 2010 and it is time to get 1.1.3 out. I will only revert on Release01x01 branch and leave it in trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release01x01/CompareRevisionsAddOn/bin/compare

    r9941 r10860  
    33use strict; 
    44use warnings; 
    5  
    6 use File::Spec; 
    7 use FindBin qw( $Bin $Script ); 
    85 
    96BEGIN { 
     
    1815        $SIG{__DIE__} = \&Carp::confess; 
    1916    } 
    20     my @path = File::Spec->splitpath($Bin); 
    21     my $setlib = File::Spec->catfile( @path, 'setlib.cfg' ); 
    22     require $setlib; 
    23     $Script =~ s/\..*$//;    # Remove optional file extension 
    24     $ENV{FOSWIKI_ACTION} = $Script; 
     17    $ENV{FOSWIKI_ACTION} = 'compare'; 
     18    @INC = ( '.', grep { $_ ne '.' } @INC ); 
     19    require 'setlib.cfg'; 
    2520} 
    2621 
Note: See TracChangeset for help on using the changeset viewer.