]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed facebook connect primary nav to hide search option when site is private and...
authorJeffery To <jeffery.to@gmail.com>
Fri, 9 Oct 2009 03:52:03 +0000 (11:52 +0800)
committerJeffery To <jeffery.to@gmail.com>
Fri, 9 Oct 2009 03:52:03 +0000 (11:52 +0800)
plugins/FBConnect/FBConnectPlugin.php

index 702aee3496753b91c0b0442b07c4a0147df0cfca..950718a33c313b3202456b65281b100c338d4ceb 100644 (file)
@@ -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;
     }