X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/72f074d7c144d5f3e52ac9263df25b6242ebaa77c78fff8993425006766d3415..543c8687995cc60b1c1b970eaac142f5dbd1bc394431ce85dc77075956c04560:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index d8b50de..fbee2c1 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -927,7 +927,7 @@ sub git_get_projects_list { $dir =~ s!/+$!!; my $pfxlen = length("$dir"); - my $check_forks = gitweb_check_feature('forks'); + my ($check_forks) = gitweb_check_feature('forks'); File::Find::find({ follow_fast => 1, # follow symbolic links @@ -2213,7 +2213,7 @@ sub git_patchset_body { sub git_project_list_body { my ($projlist, $order, $from, $to, $extra, $no_header) = @_; - my $check_forks = gitweb_check_feature('forks'); + my ($check_forks) = gitweb_check_feature('forks'); my @projects; foreach my $pr (@$projlist) { @@ -2615,7 +2615,9 @@ sub git_summary { my @taglist = git_get_tags_list(15); my @headlist = git_get_heads_list(15); my @forklist; - if (gitweb_check_feature('forks')) { + my ($check_forks) = gitweb_check_feature('forks'); + + if ($check_forks) { @forklist = git_get_projects_list($project); }