File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -4547,7 +4547,8 @@ sub git_print_page_path {
4547
4547
print $cgi -> a({-href => href(action => " blob_plain" , file_name => $file_name ,
4548
4548
hash_base => $hb ),
4549
4549
-title => $name }, esc_path($basename ));
4550
- print '
4550
+ if (gitweb_check_feature(' highlight' )) {
4551
+ print '
4551
4552
<a id="lineNoToggle" href="#" onclick="toggleLineNumbers();"></a>
4552
4553
<script>
4553
4554
function toggleLineNumbers() {
@@ -4568,6 +4569,7 @@ sub git_print_page_path {
4568
4569
toggleLineNumbers();
4569
4570
</script>
4570
4571
' ;
4572
+ }
4571
4573
} elsif (defined $type && $type eq ' tree' ) {
4572
4574
print $cgi -> a({-href => href(action => " tree" , file_name => $file_name ,
4573
4575
hash_base => $hb ),
You can’t perform that action at this time.
0 commit comments