]> git.mxchange.org Git - friendica.git/blob - mod/login.php
Merge pull request #3149 from annando/1601-new-diaspora-mention
[friendica.git] / mod / login.php
1 <?php
2
3 function login_content(App $a) {
4         if(x($_SESSION,'theme'))
5                 unset($_SESSION['theme']);
6         if(x($_SESSION,'mobile-theme'))
7                 unset($_SESSION['mobile-theme']);
8
9         if(local_user())
10                 goaway(z_root());
11         return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
12
13 }