aboutsummaryrefslogtreecommitdiffstats
path: root/mod/login.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/login.php')
-rw-r--r--mod/login.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/mod/login.php b/mod/login.php
index d09fc1868..8ad4704a3 100644
--- a/mod/login.php
+++ b/mod/login.php
@@ -1,13 +1,7 @@
<?php
function login_content(&$a) {
- if(x($_SESSION,'theme'))
- unset($_SESSION['theme']);
- if(x($_SESSION,'mobile-theme'))
- unset($_SESSION['mobile-theme']);
-
if(local_user())
goaway(z_root());
- return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
-
+ return login(($a->config['system']['register_policy'] == REGISTER_CLOSED) ? false : true);
}