really show login form if it is enabled
This commit is contained in:
parent
29d9d38d7f
commit
20a317b5b7
@ -72,7 +72,7 @@ function home_content(&$a, $update = 0, $load = false) {
|
|||||||
if($sitename)
|
if($sitename)
|
||||||
$o .= '<h1>' . sprintf( t("Welcome to %s") ,$sitename) . '</h1>';
|
$o .= '<h1>' . sprintf( t("Welcome to %s") ,$sitename) . '</h1>';
|
||||||
|
|
||||||
if(intval(get_config('system','block_public')) && (! local_channel()) && (! remote_channel())) {
|
if((! intval(get_config('system','block_public'))) && (! local_channel()) && (! remote_channel())) {
|
||||||
// If there's nothing special happening, just spit out a login box
|
// If there's nothing special happening, just spit out a login box
|
||||||
$loginbox = get_config('system','login_on_homepage');
|
$loginbox = get_config('system','login_on_homepage');
|
||||||
if(intval($loginbox) || $loginbox === false)
|
if(intval($loginbox) || $loginbox === false)
|
||||||
@ -81,4 +81,4 @@ function home_content(&$a, $update = 0, $load = false) {
|
|||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user