aboutsummaryrefslogtreecommitdiffstats
path: root/mod/home.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-06-10 13:24:16 +0200
committerMario Vavti <mario@mariovavti.com>2015-06-10 13:24:16 +0200
commitedd2d1e8d47be1ef4fe38edf624335472a2e73bd (patch)
tree2110a3a70ff18563f160053b6b9f0454f4a71baf /mod/home.php
parent50ac9378e3b1b55e8f12513f5b72152078477ab2 (diff)
downloadvolse-hubzilla-edd2d1e8d47be1ef4fe38edf624335472a2e73bd.tar.gz
volse-hubzilla-edd2d1e8d47be1ef4fe38edf624335472a2e73bd.tar.bz2
volse-hubzilla-edd2d1e8d47be1ef4fe38edf624335472a2e73bd.zip
show login without checking for block_public, local or remote channel
Diffstat (limited to 'mod/home.php')
-rw-r--r--mod/home.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/mod/home.php b/mod/home.php
index 4b651d899..3091be3a1 100644
--- a/mod/home.php
+++ b/mod/home.php
@@ -72,12 +72,9 @@ function home_content(&$a, $update = 0, $load = false) {
if($sitename)
$o .= '<h1>' . sprintf( t("Welcome to %s") ,$sitename) . '</h1>';
- if((! intval(get_config('system','block_public'))) && (! local_channel()) && (! remote_channel())) {
- // If there's nothing special happening, just spit out a login box
- $loginbox = get_config('system','login_on_homepage');
- if(intval($loginbox) || $loginbox === false)
- $o .= login(($a->config['system']['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
- }
+ $loginbox = get_config('system','login_on_homepage');
+ if(intval($loginbox) || $loginbox === false)
+ $o .= login(($a->config['system']['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
return $o;