]> git.mxchange.org Git - friendica.git/blobdiff - mod/home.php
Merge pull request #466 from pixelroot/master
[friendica.git] / mod / home.php
index d45b13ed5fb4e21ca02bd8d7296bbabb0a879741..6ed36b7638c1ce39c62adb3be61cc6f0a9f4e764 100644 (file)
@@ -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'] .= "<meta name=\"dfrn-template\" content=\"" . $a->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 .= '<h1>' . ((x($a->config,'sitename')) ? t("Welcome to ").$a->config['sitename'] : "" ) . '</h1>';
+       $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');