X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhome.php;h=0320c1b3988a5b20bd2cda7fc02bf443de78a120;hb=15cae001d947d27a75147aecec089e44d7b8c31f;hp=d45b13ed5fb4e21ca02bd8d7296bbabb0a879741;hpb=d6b8e8c6a98fb05c9f38f2c323502eb452c031ff;p=friendica.git diff --git a/mod/home.php b/mod/home.php index d45b13ed5f..0320c1b398 100644 --- a/mod/home.php +++ b/mod/home.php @@ -3,10 +3,15 @@ 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'] ); + goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] ); + + if(strlen(get_config('system','singleuser'))) + goaway( $a->get_baseurl() . "/profile/" . get_config('system','singleuser')); - $a->page['htmlhead'] .= "get_baseurl() . "/profile/%s" . "\" />\r\n"; }} @@ -18,7 +23,7 @@ function home_content(&$a) { if(x($_SESSION,'theme')) unset($_SESSION['theme']); - $o .= '

' . ((x($a->config,'sitename')) ? t("Welcome to ").$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');