@@ -3073,15 +3073,15 @@ sub filter_forks_from_projects_list {
3073
3073
sub search_projects_list {
3074
3074
my ($projlist , %opts ) = @_ ;
3075
3075
my $tagfilter = $opts {' tagfilter' };
3076
- my $searchtext = $opts {' searchtext ' };
3076
+ my $search_re = $opts {' search_regexp ' };
3077
3077
3078
3078
return @$projlist
3079
- unless ($tagfilter || $searchtext );
3079
+ unless ($tagfilter || $search_re );
3080
3080
3081
3081
# searching projects require filling to be run before it;
3082
3082
fill_project_list_info($projlist ,
3083
3083
$tagfilter ? ' ctags' : (),
3084
- $searchtext ? (' path' , ' descr' ) : ());
3084
+ $search_re ? (' path' , ' descr' ) : ());
3085
3085
my @projects ;
3086
3086
PROJECT:
3087
3087
foreach my $pr (@$projlist ) {
@@ -3092,10 +3092,10 @@ sub search_projects_list {
3092
3092
grep { lc ($_ ) eq lc ($tagfilter ) } keys %{$pr -> {' ctags' }};
3093
3093
}
3094
3094
3095
- if ($searchtext ) {
3095
+ if ($search_re ) {
3096
3096
next unless
3097
- $pr -> {' path' } =~ / $searchtext / ||
3098
- $pr -> {' descr_long' } =~ / $searchtext / ;
3097
+ $pr -> {' path' } =~ / $search_re / ||
3098
+ $pr -> {' descr_long' } =~ / $search_re / ;
3099
3099
}
3100
3100
3101
3101
push @projects , $pr ;
@@ -5484,16 +5484,16 @@ sub git_project_list_body {
5484
5484
my $show_ctags = gitweb_check_feature(' ctags' );
5485
5485
my $tagfilter = $show_ctags ? $input_params {' ctag' } : undef ;
5486
5486
$check_forks = undef
5487
- if ($tagfilter || $searchtext );
5487
+ if ($tagfilter || $search_regexp );
5488
5488
5489
5489
# filtering out forks before filling info allows to do less work
5490
5490
@projects = filter_forks_from_projects_list(\@projects )
5491
5491
if ($check_forks );
5492
5492
# search_projects_list pre-fills required info
5493
5493
@projects = search_projects_list(\@projects ,
5494
- ' searchtext ' => $searchtext ,
5494
+ ' search_regexp ' => $search_regexp ,
5495
5495
' tagfilter' => $tagfilter )
5496
- if ($tagfilter || $searchtext );
5496
+ if ($tagfilter || $search_regexp );
5497
5497
# fill the rest
5498
5498
@projects = fill_project_list_info(\@projects );
5499
5499
0 commit comments