]> git.mxchange.org Git - friendica.git/blobdiff - mod/login.php
Merge remote branch 'upstream/master'
[friendica.git] / mod / login.php
old mode 100644 (file)
new mode 100755 (executable)
index ba232a9..10b4d30
@@ -1,8 +1,10 @@
 <?php
 
-
-
 function login_content(&$a) {
-//     return login($a->config['register_enabled']);
+       if(x($_SESSION,'theme'))
+               unset($_SESSION['theme']);
+       if(local_user())
+               goaway(z_root());
        return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
+
 }
\ No newline at end of file