From: Evan Prodromou Date: Thu, 20 Nov 2008 14:43:00 +0000 (-0500) Subject: add all params to subscribers X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=49bb4a7b84763b55bc76155b5533eac52e34630b;p=quix0rs-gnu-social.git add all params to subscribers darcs-hash:20081120144300-84dde-bb02bac8053dacb470eeb357cdd43007c361cc9a.gz --- diff --git a/lib/util.php b/lib/util.php index bf96be264d..68644e9164 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':