Skip to content

Commit

Permalink
Item8805: Use published Plugin API
Browse files Browse the repository at this point in the history
Item1854: Use published Plugin API


git-svn-id: http://svn.foswiki.org/trunk/LocalTimePlugin@7004 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
BryanThale authored and BryanThale committed Mar 31, 2010
1 parent 28cdfd4 commit b2ce16d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Foswiki/Plugins/LocalTimePlugin.pm
Expand Up @@ -144,10 +144,10 @@ sub handleLocalTime {

#TODO: normalise topic
my ( $web, $topic ) =
$session->normalizeWebTopicName( $theWeb, $fromtopic );
my $zone =
$session->{prefs}
->getTopicPreferencesValue( 'TIMEZONE', $web, $topic );
Foswiki::Func::normalizeWebTopicName( $theWeb, $fromtopic );
Foswiki::Func::pushTopicContext( $web, $topic );
my $zone = Foswiki::Func::getPreferencesValue('TIMEZONE');
Foswiki::Func::popTopicContext();
$tz = $zone if defined($zone);
}

Expand Down

0 comments on commit b2ce16d

Please sign in to comment.