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 <brlink@debian.org> Acked-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Bernhard R. Link committed Jan 30, 2012 at 21:09 UTC 56efd9d2524694717adf5405fccad90e2791ebfa
1 file changed +4 -2
gitweb/gitweb.perl
+4 -2
@@ -3979,9 +3979,11 @@ sub git_footer_html {
3979 }
3980
3981 } else {
3982 - print $cgi->a({-href => href(project=>undef, action=>"opml"),
3982 + print $cgi->a({-href => href(project=>undef, action=>"opml",
3983 + project_filter => $project_filter),
3984 -class => $feed_class}, "OPML") . " ";
3984 - print $cgi->a({-href => href(project=>undef, action=>"project_index"),
3985 + print $cgi->a({-href => href(project=>undef, action=>"project_index",
3986 + project_filter => $project_filter),
3987 -class => $feed_class}, "TXT") . "\n";
3988 }
3989 print "</div>\n"; # class="page_footer"