aboutsummaryrefslogtreecommitdiffstats
path: root/gitweb
diff options
context:
space:
mode:
authorBernhard R. Link <brl+git@mail.brlink.eu>2012-01-30 21:09:00 +0100
committerJunio C Hamano <gitster@pobox.com>2012-02-01 12:52:49 -0800
commit56efd9d2524694717adf5405fccad90e2791ebfa (patch)
tree81cca71069384ea66069014662d1ea9c337e559a /gitweb
parent19d2d23998bba7c7f0ee87451ddbbf8906381939 (diff)
downloadgit-56efd9d2524694717adf5405fccad90e2791ebfa.tar.gz
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl6
1 files changed, 4 insertions, 2 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index daacf87e6a..ecd4a39d22 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 "</div>\n"; # class="page_footer"