Ignore:
Timestamp:
11/29/08 12:42:26 (4 years ago)
Author:
CrawfordCurrie
Message:

Item175: tidy build in CommentPlugin; remove the poinless tie in compat plugin; tweak location of config options for publish and mailer extensions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TWikiCompatibilityPlugin/lib/TWiki/Plugins.pm

    r837 r1061  
    11package TWiki::Plugins; 
    2  
    3 use TWiki; 
    42 
    53use Foswiki::Plugins; 
    64 
    7 # Compatible version of TWiki::Plugins 
     5# Compatible version of TWiki::Plugins. Note that this has to be versioned 
     6# separately from $Foswiki::Plugins::VERSION. 
    87our $VERSION = 1.2; 
    98 
    10 # Access to $TWiki::Plugins::SESSION is via a tie to $Foswiki::Plugins::SESSION 
    11 { 
    12     package TWiki::Plugins::SESSION_TIE; 
    13     use base 'Tie::Scalar'; 
    14  
    15     sub TIESCALAR { return bless({}, shift) } 
    16     sub FETCH { return $Foswiki::Plugins::SESSION; } 
    17     sub STORE { } # no way, Jose! 
    18 }; 
    19  
    20 tie($SESSION, 'TWiki::Plugins::SESSION_TIE'); 
     9*TWiki::Plugins::SESSION =\*Foswiki::Plugins::SESSION; 
    2110 
    22111; 
Note: See TracChangeset for help on using the changeset viewer.