]> git.mxchange.org Git - friendica.git/blobdiff - mod/login.php
Fix formatting and PHP notice in mod/photos
[friendica.git] / mod / login.php
index 79bd04862effc17f0b6091e8028c549681fa2889..f30353e828a0674943b484e7563724b11e911b4a 100644 (file)
@@ -1,18 +1,20 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\System;
 
 function login_content(App $a) {
        if (x($_SESSION, 'theme')) {
                unset($_SESSION['theme']);
        }
+
        if (x($_SESSION, 'mobile-theme')) {
                unset($_SESSION['mobile-theme']);
        }
 
        if (local_user()) {
-               goaway(z_root());
+               goaway(System::baseUrl());
        }
-       
+
        return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
 }