From: Amitai Schleier Date: Tue, 24 Apr 2018 02:28:49 +0000 (-0400) Subject: Call srcfile() with nothrow, as clearly intended. X-Git-Tag: 3.20190207~165 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/ab9cb284149d51ef8c0be44893be3ecdf955a939 Call srcfile() with nothrow, as clearly intended. --- diff --git a/IkiWiki/Plugin/osm.pm b/IkiWiki/Plugin/osm.pm index a5af4ed21..27db31af5 100644 --- a/IkiWiki/Plugin/osm.pm +++ b/IkiWiki/Plugin/osm.pm @@ -233,7 +233,7 @@ sub get_tag_icon($) { my $tag = shift; # look for an icon attached to the tag my $attached = $tag . '/' . $config{'osm_tag_default_icon'}; - if (srcfile($attached)) { + if (srcfile($attached, 1)) { return $attached; } else {