X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhome.php;h=6ed36b7638c1ce39c62adb3be61cc6f0a9f4e764;hb=250c6150583389087ecfcfccd0c0f7762c27c6cf;hp=d45b13ed5fb4e21ca02bd8d7296bbabb0a879741;hpb=2a269e0c182eb90405644190abe6f40a9cdef615;p=friendica.git diff --git a/mod/home.php b/mod/home.php index d45b13ed5f..6ed36b7638 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"; }} @@ -17,8 +22,10 @@ function home_content(&$a) { if(x($_SESSION,'theme')) unset($_SESSION['theme']); + if(x($_SESSION,'mobile-theme')) + unset($_SESSION['mobile-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');