]> git.mxchange.org Git - friendica.git/blobdiff - mod/home.php
Merge pull request #470 from CyberDomovoy/html5-treebuilder-namespace-error
[friendica.git] / mod / home.php
index 4fca1cbc23a3b8e37e7290e578217103b4a4038e..6ed36b7638c1ce39c62adb3be61cc6f0a9f4e764 100644 (file)
@@ -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'] );
 
@@ -19,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')) ? sprintf(t("Welcome to %s"),$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');