From: Thomas Willingham Date: Sat, 5 Jan 2013 14:31:10 +0000 (+0000) Subject: If we find a home.html, also look for a home.css X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0cf3d70875e03dee7890aef4deb4a8d4857faf6a;p=friendica.git If we find a home.html, also look for a home.css --- diff --git a/mod/home.php b/mod/home.php index 76318b157c..f703263a2c 100644 --- a/mod/home.php +++ b/mod/home.php @@ -25,8 +25,12 @@ function home_content(&$a) { if(x($_SESSION,'mobile-theme')) unset($_SESSION['mobile-theme']); - 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']) : "" ) . '

';