summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index ce9e312b6..b8e482eef 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1045,11 +1045,15 @@ function common_fancy_url($action, $args=NULL) {
case 'subscribers':
$nickname = $args['nickname'];
unset($args['nickname']);
+ if (isset($args['tag'])) {
+ $tag = $args['tag'];
+ unset($args['tag']);
+ }
$params = http_build_query($args);
if ($params) {
- return common_path($nickname.'/'.$action . '?' . $params);
+ return common_path($nickname.'/'.$action . (($tag) ? '/' . tag : '') . '?' . $params);
} else {
- return common_path($nickname.'/'.$action);
+ return common_path($nickname.'/'.$action . (($tag) ? '/' . tag : ''));
}
case 'allrss':
return common_path($args['nickname'].'/all/rss');