Ignore:
Timestamp:
01/27/12 06:04:41 (4 months ago)
Author:
PaulHarvey
Message:

Item11431: TWikiCompat, Don't Foswiki->new/finish

I don't understand why TWiki.pm needs to $query = undef here. Doing
that based on there being an undef $Foswiki::Plugins::SESSION makes
it impossible to create a new TWiki session object without violating
the one-instance-of-the-damn-singleton-at-a-time policy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release01x01/TWikiCompatibilityPlugin/lib/TWiki.pm

    r7644 r13839  
    1111    if ( !$Foswiki::Plugins::SESSION && UNIVERSAL::isa( $query, 'CGI' ) ) { 
    1212 
    13         # Compatibility: User gave a CGI object 
    14         # This probably means we're inside a script 
    15         $query = undef; 
     13        ## Compatibility: User gave a CGI object 
     14        ## This probably means we're inside a script 
     15        ## $query = undef; 
     16        # The above was added in Item689, Foswikirev:1847. It doesn't make any 
     17        # sense to me. PH disabled under Item11431 ('no singleton left behind') 
    1618    } 
    1719    my $fatwilly = new Foswiki( $loginName, $query, $initialContext ); 
Note: See TracChangeset for help on using the changeset viewer.