diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-06-07 18:27:05 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-06-07 18:27:05 -0700 |
commit | 60cfea5d1f807824525ef2e49606753d6b4860f1 (patch) | |
tree | 7f9710a6c487df374f325f3358cc02008e666608 /mod/home.php | |
parent | 0537ff1e4a220f08e708c7edfb53b26622d3313f (diff) | |
download | volse-hubzilla-60cfea5d1f807824525ef2e49606753d6b4860f1.tar.gz volse-hubzilla-60cfea5d1f807824525ef2e49606753d6b4860f1.tar.bz2 volse-hubzilla-60cfea5d1f807824525ef2e49606753d6b4860f1.zip |
reverse logic of homepage login setting
Diffstat (limited to 'mod/home.php')
-rw-r--r-- | mod/home.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/home.php b/mod/home.php index 9f1c77131..aa89d9ff4 100644 --- a/mod/home.php +++ b/mod/home.php @@ -69,7 +69,8 @@ function home_content(&$a, $update = 0, $load = false) { if(intval(get_config('system','block_public')) && (! local_channel()) && (! remote_channel())) { // If there's nothing special happening, just spit out a login box - if (! $a->config['system']['no_login_on_homepage']) + $loginbox = get_config('system',login_on_homepage'); + if(intval($loginbox) || $loginbox === false) $o .= login(($a->config['system']['register_policy'] == REGISTER_CLOSED) ? 0 : 1); } |