X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhome.php;h=0320c1b3988a5b20bd2cda7fc02bf443de78a120;hb=49ad9b355c352211375247e6fcacdfd1970599ed;hp=4fca1cbc23a3b8e37e7290e578217103b4a4038e;hpb=9f7878057f356ba785de26877a660bb025cae31d;p=friendica.git diff --git a/mod/home.php b/mod/home.php index 4fca1cbc23..0320c1b398 100644 --- a/mod/home.php +++ b/mod/home.php @@ -3,6 +3,9 @@ if(! function_exists('home_init')) { function home_init(&$a) { + $ret = array(); + call_hooks('home_init',$ret); + if(local_user() && ($a->user['nickname'])) goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] ); @@ -20,7 +23,7 @@ function home_content(&$a) { if(x($_SESSION,'theme')) unset($_SESSION['theme']); - $o .= '

' . ((x($a->config,'sitename')) ? sprintf(t("Welcome to %s"),$a->config['sitename']) : "" ) . '

'; + $o .= '

' . ((x($a->config,'sitename')) ? sprintf( t("Welcome to %s") ,$a->config['sitename']) : "" ) . '

'; if(file_exists('home.html')) $o .= file_get_contents('home.html');