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-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/aa77e1ec8cad83fdd4f9747e1d861731c7265259b4835d703f377f65ed0ef473?ds=sidebyside;hp=9b98a97e7e97f86ca0d373a41a738b8a1608f2d7c59ee31835e982881aad242a 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.perl b/gitweb.perl index a1bf9f5..514f263 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -3982,9 +3982,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"