diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-09 18:31:44 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-09 18:31:44 -0400 |
commit | 62747030ca454bd059482662be914c8ac907d193 (patch) | |
tree | 72ad01b8945df8fd40c72fa67a1843ff894578a2 /lib/util.php | |
parent | e6d772a5a8c298f99a059c122109d7b0be36acd1 (diff) |
add fancy urls for search
darcs-hash:20080709223144-84dde-10f7f9db7dc5ba200fdeea4d6c1f277e71c54c16.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index 1498ffb14..c6b456a03 100644 --- a/lib/util.php +++ b/lib/util.php @@ -278,6 +278,7 @@ function common_nav_menu() { _t('Home')); } common_menu_item(common_local_url('public'), _t('Public')); + common_menu_item(common_local_url('peoplesearch'), _t('Search')); common_menu_item(common_local_url('doc', array('title' => 'help')), _t('Help')); if ($user) { @@ -773,6 +774,10 @@ function common_fancy_url($action, $args=NULL) { return common_path($path); case 'imsettings': return common_path('settings/im'); + case 'peoplesearch': + return common_path('search/people' . (($args) ? '?' . implode('&', $args)) : ''); + case 'noticesearch': + return common_path('search/notice' . (($args) ? '?' . implode('&', $args)) : ''); default: return common_simple_url($action, $args); } |