]> git.mxchange.org Git - friendica.git/commitdiff
Only show "Welcome to $Sitename" if you haven't made your own homepage.
authorThomas Willingham <founder@kakste.com>
Sun, 4 Nov 2012 19:58:59 +0000 (19:58 +0000)
committerThomas Willingham <founder@kakste.com>
Sun, 4 Nov 2012 19:58:59 +0000 (19:58 +0000)
mod/home.php

index 6ed36b7638c1ce39c62adb3be61cc6f0a9f4e764..76318b157ca0dc7ad93e0190b1dfefe27efb2fb4 100644 (file)
@@ -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);