Changeset 7004


Ignore:
Timestamp:
03/31/10 04:35:22 (2 years ago)
Author:
BryanThale
Message:

Item8805: Use published Plugin API
Item1854: Use published Plugin API

File:
1 edited

Legend:

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

    r7003 r7004  
    145145        #TODO: normalise topic 
    146146        my ( $web, $topic ) = 
    147           $session->normalizeWebTopicName( $theWeb, $fromtopic ); 
    148         my $zone = 
    149           $session->{prefs} 
    150           ->getTopicPreferencesValue( 'TIMEZONE', $web, $topic ); 
     147          Foswiki::Func::normalizeWebTopicName( $theWeb, $fromtopic ); 
     148        Foswiki::Func::pushTopicContext( $web, $topic ); 
     149        my $zone = Foswiki::Func::getPreferencesValue('TIMEZONE'); 
     150        Foswiki::Func::popTopicContext(); 
    151151        $tz = $zone if defined($zone); 
    152152    } 
Note: See TracChangeset for help on using the changeset viewer.