mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:40:17 +00:00
Only show "Welcome to $Sitename" if you haven't made your own homepage.
This commit is contained in:
parent
234598280d
commit
190ab46e18
1 changed files with 2 additions and 1 deletions
|
@ -25,9 +25,10 @@ function home_content(&$a) {
|
||||||
if(x($_SESSION,'mobile-theme'))
|
if(x($_SESSION,'mobile-theme'))
|
||||||
unset($_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'))
|
if(file_exists('home.html'))
|
||||||
$o .= file_get_contents('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);
|
$o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue