aboutsummaryrefslogtreecommitdiffstats
path: root/mod/home.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-14 13:52:34 -0800
committerfriendica <info@friendica.com>2015-01-14 13:52:34 -0800
commit1005618fafdea956e2941d871bc74cb1158aa043 (patch)
treea4722b6cd61f05300c4a6b34918253bde48dc7a6 /mod/home.php
parent7090b58f68251b8c4b39332f2ea051e95ead3df3 (diff)
downloadvolse-hubzilla-1005618fafdea956e2941d871bc74cb1158aa043.tar.gz
volse-hubzilla-1005618fafdea956e2941d871bc74cb1158aa043.tar.bz2
volse-hubzilla-1005618fafdea956e2941d871bc74cb1158aa043.zip
honor disable_discover_tab in mod/home - it isn't a tab here but basically block public content from showing if it's set.
Diffstat (limited to 'mod/home.php')
-rw-r--r--mod/home.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/home.php b/mod/home.php
index e82aab385..2e57a2ab9 100644
--- a/mod/home.php
+++ b/mod/home.php
@@ -109,6 +109,11 @@ function home_content(&$a, $update = 0, $load = false) {
}
else {
+ if(get_config('system','disable_discover_tab')) {
+ call_hooks('home_content',$o);
+ return $o;
+ }
+
if(! $update) {
$maxheight = get_config('system','home_divmore_height');