From: Thomas Willingham <founder@kakste.com>
Date: Sun, 4 Nov 2012 19:58:59 +0000 (+0000)
Subject: Only show "Welcome to $Sitename" if you haven't made your own homepage.
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=190ab46e18ec161a161fbeef01f412ae093b283f;p=friendica.git

Only show "Welcome to $Sitename" if you haven't made your own homepage.
---

diff --git a/mod/home.php b/mod/home.php
index 6ed36b7638..76318b157c 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 .= '<h1>' . ((x($a->config,'sitename')) ? sprintf( t("Welcome to %s") ,$a->config['sitename']) : "" ) . '</h1>';
 	if(file_exists('home.html'))
  		$o .= file_get_contents('home.html');
+	else 	$o .= '<h1>' . ((x($a->config,'sitename')) ? sprintf( t("Welcome to %s") ,$a->config['sitename']) : "" ) . '</h1>';
+
 
 	$o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);