summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-08-11 10:39:44 -0400
committerCraig Andrews <candrews@integralblue.com>2009-08-11 10:39:44 -0400
commitb93df1ccbc5d38e6dedca7e2fd38a92bb683f464 (patch)
tree5302f0d55195b1418546cc988d4291293f4b85af /lib
parent2d29800b6f2f5e7581241dfa3e0a19fc5925049c (diff)
parentfedadd5c5ba52a5a05cf1f621f38ed33807a2c71 (diff)
Merge commit 'jeff-themovie/0.8.x-private-search' into 0.8.x
Diffstat (limited to 'lib')
-rw-r--r--lib/action.php6
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');