]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Call srcfile() with nothrow, as clearly intended.
authorAmitai Schleier <schmonz-web-ikiwiki@schmonz.com>
Tue, 24 Apr 2018 02:28:49 +0000 (22:28 -0400)
committerAmitai Schleier <schmonz-web-ikiwiki@schmonz.com>
Tue, 24 Apr 2018 02:28:49 +0000 (22:28 -0400)
IkiWiki/Plugin/osm.pm

index a5af4ed21b1acb89d89d87083643cca729c6be36..27db31af583994fc8da9c1a062b8b6518daa5dba 100644 (file)
@@ -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 {