aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2017-12-03 12:31:41 +0100
committerMario <mario@mariovavti.com>2017-12-03 12:31:41 +0100
commitdae0107dd0e1caa460866b5debdc6de912bfd819 (patch)
tree96ec8614c5629d49b7d78186a92d44eb9d31b98c /include
parentdd2c4c37ff03eef6470ef0364217b2c6208c38c0 (diff)
downloadvolse-hubzilla-dae0107dd0e1caa460866b5debdc6de912bfd819.tar.gz
volse-hubzilla-dae0107dd0e1caa460866b5debdc6de912bfd819.tar.bz2
volse-hubzilla-dae0107dd0e1caa460866b5debdc6de912bfd819.zip
fix some pubstream on/off weirdness
Diffstat (limited to 'include')
-rw-r--r--include/nav.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/nav.php b/include/nav.php
index 8ab401c76..66c4c1556 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -73,6 +73,11 @@ EOT;
// nav links: array of array('href', 'text', 'extra css classes', 'title')
$nav = [];
+ $disable_discover_tab = get_config('system','disable_discover_tab') || get_config('system','disable_discover_tab') === false;
+
+ if(! $disable_discover_tab)
+ $nav['pubs'] = true;
+
/**
* Display login or logout
*/