Skip to content

Commit

Permalink
Item14068: fix excessive calls of getPreferences()
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed May 10, 2016
1 parent bd7ffee commit 14838b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/Foswiki/Render.pm
Expand Up @@ -1380,10 +1380,10 @@ sub _renderExistingWikiWord {
$this->{LINKTOOLTIPINFO} = '$username - $date - r$rev: $summary';
}
elsif ( $this->{LINKTOOLTIPINFO} =~ m/^([Oo][Ff][Ff])?$/ ) {
undef $this->{LINKTOOLTIPINFO};
$this->{LINKTOOLTIPINFO} = '';
}
}
if ( defined $this->{LINKTOOLTIPINFO}
if ( $this->{LINKTOOLTIPINFO} ne ''
&& $this->{session}->inContext('view') )
{
require Foswiki::Render::ToolTip;
Expand Down

0 comments on commit 14838b8

Please sign in to comment.