]> git.mxchange.org Git - friendica.git/blobdiff - mod/login.php
Some more
[friendica.git] / mod / login.php
index 79e245c9b54485f9d3779bd1205523d1fac189ab..f30353e828a0674943b484e7563724b11e911b4a 100644 (file)
@@ -1,16 +1,20 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\System;
+
 function login_content(App $a) {
-       if (x($_SESSION,'theme')) {
+       if (x($_SESSION, 'theme')) {
                unset($_SESSION['theme']);
        }
-       if (x($_SESSION,'mobile-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);
 
+       return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
 }