diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-06-10 17:44:04 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-06-10 17:44:04 -0700 |
commit | 9a5d9fb8c59b04ef64151d1d038dc2659898d295 (patch) | |
tree | 1d29e19a3b1979d6c40a4fa46f51ba75428d2213 /mod/public.php | |
parent | edd2d1e8d47be1ef4fe38edf624335472a2e73bd (diff) | |
download | volse-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.php | 6 |
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; |