File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3913,7 +3913,7 @@ sub blob_contenttype {
39133913# guess file syntax for syntax highlighting; return undef if no highlighting
39143914# the name of syntax can (in the future) depend on syntax highlighter used
39153915sub guess_file_syntax {
3916- my ($highlight , $mimetype , $ file_name ) = @_ ;
3916+ my ($highlight , $file_name ) = @_ ;
39173917 return undef unless ($highlight && defined $file_name );
39183918 my $basename = basename($file_name , ' .in' );
39193919 return $highlight_basename {$basename }
@@ -7062,7 +7062,7 @@ sub git_blob {
70627062 $have_blame &&= ($mimetype =~ m ! ^text/! );
70637063
70647064 my $highlight = gitweb_check_feature(' highlight' );
7065- my $syntax = guess_file_syntax($highlight , $mimetype , $ file_name );
7065+ my $syntax = guess_file_syntax($highlight , $file_name );
70667066 $fd = run_highlighter($fd , $highlight , $syntax )
70677067 if $syntax ;
70687068
You can’t perform that action at this time.
0 commit comments