From 49bb4a7b84763b55bc76155b5533eac52e34630b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 20 Nov 2008 09:43:00 -0500 Subject: add all params to subscribers darcs-hash:20081120144300-84dde-bb02bac8053dacb470eeb357cdd43007c361cc9a.gz --- lib/util.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/util.php b/lib/util.php index bf96be264..68644e916 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1011,8 +1011,6 @@ function common_fancy_url($action, $args=NULL) { case 'xrds': case 'foaf': return common_path($args['nickname'].'/'.$action); - case 'subscriptions': - case 'subscribers': case 'all': case 'replies': case 'inbox': @@ -1022,6 +1020,16 @@ function common_fancy_url($action, $args=NULL) { } else { return common_path($args['nickname'].'/'.$action); } + case 'subscriptions': + case 'subscribers': + $nickname = $args['nickname']; + unset($args['nickname']); + $params = http_build_query($args); + if ($params) { + return common_path($nickname.'/'.$action . '?' . $params); + } else { + return common_path($nickname.'/'.$action); + } case 'allrss': return common_path($args['nickname'].'/all/rss'); case 'repliesrss': -- cgit v1.2.3-54-g00ecf