X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhome.php;h=f703263a2c6a532831bcfc5431c1e944e53ee0ae;hb=660bd39efad52b1c69bd8dd0ca27141b81f84ca5;hp=6ed36b7638c1ce39c62adb3be61cc6f0a9f4e764;hpb=984274659d8fc710eaf96c35c1b1dcd05620a138;p=friendica.git diff --git a/mod/home.php b/mod/home.php index 6ed36b7638..f703263a2c 100644 --- a/mod/home.php +++ b/mod/home.php @@ -25,9 +25,14 @@ 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'); + if(file_exists('home.html')){ + if(file_exists('home.css')){ + $a->page['htmlhead'] .= '';} + + $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);