summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2009-01-26 14:19:49 +0100
committerEvan Prodromou <evan@controlyourself.ca>2009-01-26 14:19:49 +0100
commit5b211271f9507e49faf4052836686a356e3f88ed (patch)
treef864c395bf22eb17d2a29c90b00b8ee796ad8917 /lib/util.php
parent0e9cdf585935680ffea340a60f67d01b5e310947 (diff)
Fix pagination on user groups page
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index a80c62287..50e943533 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -903,7 +903,9 @@ function common_fancy_url($action, $args=null)
case 'grouplogo':
return common_path('group/'.$args['nickname'].'/logo');
case 'usergroups':
- return common_path($args['nickname'].'/groups' . (($args) ? ('?' . http_build_query($args)) : ''));
+ $nickname = $args['nickname'];
+ unset($args['nickname']);
+ return common_path($nickname.'/groups' . (($args) ? ('?' . http_build_query($args)) : ''));
case 'groups':
return common_path('group' . (($args) ? ('?' . http_build_query($args)) : ''));
default: