show login without checking for block_public, local or remote channel
This commit is contained in:
parent
50ac9378e3
commit
edd2d1e8d4
@ -72,12 +72,9 @@ 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())) {
|
$loginbox = get_config('system','login_on_homepage');
|
||||||
// If there's nothing special happening, just spit out a login box
|
if(intval($loginbox) || $loginbox === false)
|
||||||
$loginbox = get_config('system','login_on_homepage');
|
$o .= login(($a->config['system']['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
|
||||||
if(intval($loginbox) || $loginbox === false)
|
|
||||||
$o .= login(($a->config['system']['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user