diff --git a/mod/home.php b/mod/home.php
index 6ed36b763..76318b157 100644
--- a/mod/home.php
+++ b/mod/home.php
@@ -25,9 +25,10 @@ function home_content(&$a) {
if(x($_SESSION,'mobile-theme'))
unset($_SESSION['mobile-theme']);
- $o .= '
' . ((x($a->config,'sitename')) ? sprintf( t("Welcome to %s") ,$a->config['sitename']) : "" ) . '
';
if(file_exists('home.html'))
$o .= file_get_contents('home.html');
+ else $o .= '' . ((x($a->config,'sitename')) ? sprintf( t("Welcome to %s") ,$a->config['sitename']) : "" ) . '
';
+
$o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);