add option to hide login form from homepage

This commit is contained in:
Tobias Diekershoff
2013-12-06 12:00:43 +01:00
parent fc96714896
commit 6c6c8a2451
3 changed files with 5 additions and 0 deletions

View File

@@ -78,6 +78,7 @@ require_once('include/conversation.php');
$o .= file_get_contents('home.html');
}
if (!$a->config['system']['no_login_on_homepage'])
$o .= login(($a->config['system']['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
call_hooks("home_content",$o);