]> git.mxchange.org Git - friendica.git/commitdiff
Only hide the search if "local_search" was activated.
authorMichael Vogel <icarus@dabo.de>
Mon, 25 Apr 2016 14:42:16 +0000 (16:42 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 1 May 2016 11:48:52 +0000 (13:48 +0200)
include/nav.php

index 2e8dd772c5158f997451ab4fe3d92cb7b9eff78b..8f82bc4d0220d20993228df77ae83c0047b7363b 100644 (file)
@@ -118,7 +118,7 @@ function nav_info(&$a) {
        if(count($a->apps)>0)
                $nav['apps'] = array('apps', t('Apps'), "", t('Addon applications, utilities, games'));
 
-       if (local_user()) {
+       if (local_user() OR !get_config('system','local_search')) {
                $nav['search'] = array('search', t('Search'), "", t('Search site content'));
 
                $nav['searchoption'] = array(