summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-01-23 07:50:55 +0000
committerRobin Millette <millette@plantard.controlezvous.ca>2009-01-23 07:50:55 +0000
commit965d4db26560892024503f538f107604b0f1bb45 (patch)
treebc9db94824a38c0bb8f559c8ec575e5a3bffafcc /lib
parent171d89aab79207f08b3c84d76a4b2bb50185490d (diff)
Group search
Diffstat (limited to 'lib')
-rw-r--r--lib/searchgroupnav.php2
-rw-r--r--lib/util.php2
2 files changed, 4 insertions, 0 deletions
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':