diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-01-23 03:00:51 +0100 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-01-23 03:00:51 +0100 |
commit | 8942e3a445d6e4965fc46e08cb90bbfed17cd56a (patch) | |
tree | a098230b2245179627d08ae1b1fcaf8e4e72eb5e /lib | |
parent | cafc51db093daa652912cd85fe7b40aac26a272d (diff) |
Add an action to show the list of the latest groups
Diffstat (limited to 'lib')
-rw-r--r-- | lib/publicgroupnav.php | 3 | ||||
-rw-r--r-- | lib/util.php | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/publicgroupnav.php b/lib/publicgroupnav.php index 8dd97a3b7..d72475e20 100644 --- a/lib/publicgroupnav.php +++ b/lib/publicgroupnav.php @@ -76,6 +76,9 @@ class PublicGroupNav extends Widget $this->out->menuItem(common_local_url('public'), _('Public'), _('Public timeline'), $action_name == 'public', 'nav_timeline_public'); + $this->out->menuItem(common_local_url('groups'), _('Groups'), + _('User groups'), $action_name == 'groups', 'nav_groups'); + $this->out->menuItem(common_local_url('publictagcloud'), _('Recent tags'), _('Recent tags'), $action_name == 'publictagcloud', 'nav_recent-tags'); diff --git a/lib/util.php b/lib/util.php index d30a56c77..42bc08e7e 100644 --- a/lib/util.php +++ b/lib/util.php @@ -945,6 +945,8 @@ function common_fancy_url($action, $args=null) return common_path('group/'.$args['nickname'].'/members'); case 'usergroups': return common_path($args['nickname'].'/groups'); + case 'groups': + return common_path('group'); default: return common_simple_url($action, $args); } |