diff options
author | Jeffery To <jeffery.to@gmail.com> | 2009-08-11 20:47:41 +0800 |
---|---|---|
committer | Jeffery To <jeffery.to@gmail.com> | 2009-08-11 20:47:41 +0800 |
commit | 4d37e919ec761a1160bca9a2e204b68745376455 (patch) | |
tree | e18d861004e1fe0da279c9466b949c41d1ca64f0 /lib | |
parent | 73cde378c9f8d14cb2c4a896813ac6d21299a142 (diff) |
Don't show Search in the primary nav if the user isn't logged in and the site is private
Diffstat (limited to 'lib')
-rw-r--r-- | lib/action.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/action.php b/lib/action.php index 6da9adab5..1bdc4daea 100644 --- a/lib/action.php +++ b/lib/action.php @@ -450,8 +450,10 @@ class Action extends HTMLOutputter // lawsuit } $this->menuItem(common_local_url('doc', array('title' => 'help')), _('Help'), _('Help me!'), false, 'nav_help'); - $this->menuItem(common_local_url('peoplesearch'), - _('Search'), _('Search for people or text'), false, 'nav_search'); + if ($user || !common_config('site', 'private')) { + $this->menuItem(common_local_url('peoplesearch'), + _('Search'), _('Search for people or text'), false, 'nav_search'); + } Event::handle('EndPrimaryNav', array($this)); } $this->elementEnd('ul'); |