Ignore:
Timestamp:
01/26/12 02:45:28 (4 months ago)
Author:
PaulHarvey
Message:

Item11431: add ASSERTs for SINGLE_SINGLETONS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/lib/Foswiki/Plugins.pm

    r12168 r13826  
    225225    # Set the session for this call stack 
    226226    local $Foswiki::Plugins::SESSION = $this->{session}; 
     227    ASSERT( $Foswiki::Plugins::SESSION->isa('Foswiki') ) if DEBUG; 
    227228 
    228229    foreach my $plugin ( @{ $this->{plugins} } ) { 
     
    247248    # Set the session for this call stack 
    248249    local $Foswiki::Plugins::SESSION = $this->{session}; 
     250    ASSERT( $Foswiki::Plugins::SESSION->isa('Foswiki') ) if DEBUG; 
    249251 
    250252    foreach my $plugin ( @{ $this->{plugins} } ) { 
     
    326328        # Set the value of $SESSION for this call stack 
    327329        local $SESSION = $this->{session}; 
     330        ASSERT( $Foswiki::Plugins::SESSION->isa('Foswiki') ) if DEBUG; 
    328331 
    329332        # apply handler on the remaining list of args 
Note: See TracChangeset for help on using the changeset viewer.