Fixed facebook connect primary nav to hide search option when site is private and user is not logged in

This commit is contained in:
Jeffery To 2009-10-09 11:52:03 +08:00
parent d13b0c385d
commit c597aba342

View File

@ -318,8 +318,10 @@ class FBConnectPlugin extends Plugin
$action->menuItem(common_local_url('doc', array('title' => 'help')), $action->menuItem(common_local_url('doc', array('title' => 'help')),
_('Help'), _('Help me!'), false, 'nav_help'); _('Help'), _('Help me!'), false, 'nav_help');
if ($user || !common_config('site', 'private')) {
$action->menuItem(common_local_url('peoplesearch'), $action->menuItem(common_local_url('peoplesearch'),
_('Search'), _('Search for people or text'), false, 'nav_search'); _('Search'), _('Search for people or text'), false, 'nav_search');
}
return false; return false;
} }