Fix URLs for the Contributions Account plugin when sorting.

This commit is contained in:
Colin Kuskie 2009-02-17 01:07:33 +00:00
parent e6e183f407
commit 7194107900
2 changed files with 3 additions and 1 deletions

View file

@ -145,6 +145,7 @@ sub www_view {
#Set the uid just in case;
#$self->uid($userId);
#Deal with sort order
my $sortBy = $session->form->get("sortBy") || "creationDate";
my $sort_url = ($sortBy)?";sortBy=$sortBy":"";
@ -158,7 +159,7 @@ sub www_view {
my $rpp_url = ";rpp=$rpp";
#Cache the base url
my $contribsUrl = $self->getUrl("module=contributions;do=view;uid=$userId");
my $contribsUrl = $self->getUrl(undef, 'appendUID');
#Create sortBy headers
$var->{'title_url' } = $contribsUrl.";sortBy=title".$sortDir_url.$rpp_url;