]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix the group url (Closes #971)
authorEvan Prodromou <evan@controlyourself.ca>
Sat, 24 Jan 2009 10:24:37 +0000 (11:24 +0100)
committerEvan Prodromou <evan@controlyourself.ca>
Sat, 24 Jan 2009 10:24:37 +0000 (11:24 +0100)
lib/util.php

index 723b2f250482c0328e21d026f465b5be1606fad1..ede8db6b69d6c4a1f74c5141ac6a28558c60c87d 100644 (file)
@@ -903,9 +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');
+        return common_path($args['nickname'].'/groups' . (($args) ? ('?' . http_build_query($args)) : ''));
      case 'groups':
-        return common_path('group');
+        return common_path('search/group' . (($args) ? ('?' . http_build_query($args)) : ''));
      default:
         return common_simple_url($action, $args);
     }