diff options
author | Adrian Lang <mail@adrianlang.de> | 2009-01-26 14:19:49 +0100 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-01-26 14:19:49 +0100 |
commit | 5b211271f9507e49faf4052836686a356e3f88ed (patch) | |
tree | f864c395bf22eb17d2a29c90b00b8ee796ad8917 | |
parent | 0e9cdf585935680ffea340a60f67d01b5e310947 (diff) |
Fix pagination on user groups page
-rw-r--r-- | lib/util.php | 4 |
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: |