Fix pagination on user groups page

This commit is contained in:
Adrian Lang 2009-01-26 14:19:49 +01:00 committed by Evan Prodromou
parent 0e9cdf5859
commit 5b211271f9

View File

@ -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: