Skip to content

Commit

Permalink
Item2456: need to check that _filetypes.txt actually exists, and not …
Browse files Browse the repository at this point in the history
…just assume it does

git-svn-id: http://svn.foswiki.org/trunk@6808 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Mar 20, 2010
1 parent dfbffd4 commit 15f409b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/lib/Foswiki/Macros/ICON.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ sub _lookupIcon {
$iconTopic =~ s/\s+$//;
my ( $w, $t ) =
$this->normalizeWebTopicName( $this->{webName}, $iconTopic );
$this->{_ICONSPACE} = new Foswiki::Meta($this, $w, $t);
if (topicExists($w, $t)) {
$this->{_ICONSPACE} = new Foswiki::Meta($this, $w, $t);
} else {
$this->logger->log(
'warning', 'ICONTOPIC $w.$t does not exist' );
}
}
}
return undef unless $this->{_ICONSPACE};
Expand Down

0 comments on commit 15f409b

Please sign in to comment.