summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-11-20 09:43:00 -0500
committerEvan Prodromou <evan@prodromou.name>2008-11-20 09:43:00 -0500
commit49bb4a7b84763b55bc76155b5533eac52e34630b (patch)
treef0d133b638d458a8be3d722dc4443c165125c6e7
parent9da1bce9403efd24b40db882e211df595681a9e3 (diff)
add all params to subscribers
darcs-hash:20081120144300-84dde-bb02bac8053dacb470eeb357cdd43007c361cc9a.gz
-rw-r--r--lib/util.php12
1 files 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':