summaryrefslogtreecommitdiff
path: root/plugins/FBConnect
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2009-10-09 11:52:03 +0800
committerJeffery To <jeffery.to@gmail.com>2009-10-09 11:52:03 +0800
commitc597aba342c2d4bd7ee53dc471d6b7deafb62a5e (patch)
tree4a6f55b7868b4eafd8224fd6c79683d4c94141fa /plugins/FBConnect
parentd13b0c385dbf6326ecec1c9a9abf9cac0f6ed4b2 (diff)
Fixed facebook connect primary nav to hide search option when site is private and user is not logged in
Diffstat (limited to 'plugins/FBConnect')
-rw-r--r--plugins/FBConnect/FBConnectPlugin.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/FBConnect/FBConnectPlugin.php b/plugins/FBConnect/FBConnectPlugin.php
index 702aee349..950718a33 100644
--- a/plugins/FBConnect/FBConnectPlugin.php
+++ b/plugins/FBConnect/FBConnectPlugin.php
@@ -318,8 +318,10 @@ class FBConnectPlugin extends Plugin
$action->menuItem(common_local_url('doc', array('title' => 'help')),
_('Help'), _('Help me!'), false, 'nav_help');
- $action->menuItem(common_local_url('peoplesearch'),
- _('Search'), _('Search for people or text'), false, 'nav_search');
+ if ($user || !common_config('site', 'private')) {
+ $action->menuItem(common_local_url('peoplesearch'),
+ _('Search'), _('Search for people or text'), false, 'nav_search');
+ }
return false;
}