aboutsummaryrefslogtreecommitdiffstats
path: root/mod/public.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-10 17:44:04 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-10 17:44:04 -0700
commit9a5d9fb8c59b04ef64151d1d038dc2659898d295 (patch)
tree1d29e19a3b1979d6c40a4fa46f51ba75428d2213 /mod/public.php
parentedd2d1e8d47be1ef4fe38edf624335472a2e73bd (diff)
downloadvolse-hubzilla-9a5d9fb8c59b04ef64151d1d038dc2659898d295.tar.gz
volse-hubzilla-9a5d9fb8c59b04ef64151d1d038dc2659898d295.tar.bz2
volse-hubzilla-9a5d9fb8c59b04ef64151d1d038dc2659898d295.zip
put block_public back where it is needed, which is in mod_public and not mod_home
Diffstat (limited to 'mod/public.php')
-rw-r--r--mod/public.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/public.php b/mod/public.php
index 1f23a1999..64ae9d20a 100644
--- a/mod/public.php
+++ b/mod/public.php
@@ -7,6 +7,12 @@ function public_content(&$a, $update = 0, $load = false) {
if($load)
$_SESSION['loadtime'] = datetime_convert();
+
+ if(get_config('system','block_public') && (! get_account_id()) && (! remote_channel())) {
+ return login();
+ }
+
+
if(get_config('system','disable_discover_tab'))
return;