]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/HlMod.pm
hlmod: update for highlight 3.51 API change
[public-inbox.git] / lib / PublicInbox / HlMod.pm
index 36e311060dcf52bb41eed5f6a2cff38bbb2de006..1d7a460d9b0fe3914f1de64f85f060ac1a8bf953 100644 (file)
@@ -20,7 +20,7 @@ use PublicInbox::Hval qw(src_escape ascii_html);
 my $hl;
 
 sub _parse_filetypes ($) {
-       my $ft_conf = $_[0]->searchFile('filetypes.conf') or
+       my $ft_conf = $_[0]->getFiletypesConfPath('filetypes') or
                                die 'filetypes.conf not found by highlight';
        open my $fh, '<', $ft_conf or die "failed to open($ft_conf): $!";
        local $/;