From 0cf3d70875e03dee7890aef4deb4a8d4857faf6a Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Sat, 5 Jan 2013 14:31:10 +0000 Subject: [PATCH] If we find a home.html, also look for a home.css --- mod/home.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mod/home.php b/mod/home.php index 76318b157..f703263a2 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']) : "" ) . '

';