From 965d4db26560892024503f538f107604b0f1bb45 Mon Sep 17 00:00:00 2001 From: Robin Millette Date: Fri, 23 Jan 2009 07:50:55 +0000 Subject: Group search --- lib/searchgroupnav.php | 2 ++ lib/util.php | 2 ++ 2 files changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/searchgroupnav.php b/lib/searchgroupnav.php index 4ea226692..9fe3c2379 100644 --- a/lib/searchgroupnav.php +++ b/lib/searchgroupnav.php @@ -81,6 +81,8 @@ class SearchGroupNav extends Widget _('Find people on this site'), $action_name == 'peoplesearch', 'nav_search_people'); $this->out->menuItem(common_local_url('noticesearch', $args), _('Notice'), _('Find content of notices'), $action_name == 'noticesearch', 'nav_search_notice'); + $this->out->menuItem(common_local_url('groupsearch', $args), _('Group'), + _('Find groups on this site'), $action_name == 'groupsearch', 'nav_search_notice'); $this->action->elementEnd('ul'); } } diff --git a/lib/util.php b/lib/util.php index 0b5abfa48..4b77f7c19 100644 --- a/lib/util.php +++ b/lib/util.php @@ -823,6 +823,8 @@ function common_fancy_url($action, $args=null) return common_path('settings/im'); case 'avatarsettings': return common_path('settings/avatar'); + case 'groupsearch': + return common_path('search/group' . (($args) ? ('?' . http_build_query($args)) : '')); case 'peoplesearch': return common_path('search/people' . (($args) ? ('?' . http_build_query($args)) : '')); case 'noticesearch': -- cgit v1.2.3-54-g00ecf