From: Bernhard R. Link Date: Mon, 30 Jan 2012 20:09:00 +0000 (+0100) Subject: gitweb: limit links to alternate forms of project_list to active project_filter X-Git-Tag: v1.7.10-rc0~84^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=56efd9d2524694717adf5405fccad90e2791ebfa;p=git.git gitweb: limit links to alternate forms of project_list to active project_filter If project_list action is given a project_filter argument, pass that to TXT and OPML formats. This way [OPML] and [TXT] links provide the same list of projects as the projects_list page they are linked from. Signed-off-by: Bernhard R. Link Acked-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index daacf87e6..ecd4a39d2 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -3979,9 +3979,11 @@ sub git_footer_html { } } else { - print $cgi->a({-href => href(project=>undef, action=>"opml"), + print $cgi->a({-href => href(project=>undef, action=>"opml", + project_filter => $project_filter), -class => $feed_class}, "OPML") . " "; - print $cgi->a({-href => href(project=>undef, action=>"project_index"), + print $cgi->a({-href => href(project=>undef, action=>"project_index", + project_filter => $project_filter), -class => $feed_class}, "TXT") . "\n"; } print "\n"; # class="page_footer"