]> 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 225bd294d2fbcecce3a716060b6c8708e3f04031..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,6 +22,8 @@ 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>';
        if(file_exists('home.html'))