]> git.mxchange.org Git - friendica.git/blob - mod/login.php
Bugfix Diaspora: We exited with the wrong return values and the guid for messages...
[friendica.git] / mod / login.php
1 <?php
2
3 use Friendica\App;
4
5 function login_content(App $a) {
6         if (x($_SESSION, 'theme')) {
7                 unset($_SESSION['theme']);
8         }
9
10         if (x($_SESSION, 'mobile-theme')) {
11                 unset($_SESSION['mobile-theme']);
12         }
13
14         if (local_user()) {
15                 goaway(z_root());
16         }
17
18         return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
19 }