aboutsummaryrefslogtreecommitdiffstats
path: root/mod/login.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-21 04:08:48 -0800
committerfriendica <info@friendica.com>2012-12-21 04:08:48 -0800
commit8d71fe91f67eeb501efd6fedd17992c12882daeb (patch)
tree83c680bed39e2bc08db156d452e19b2911eae225 /mod/login.php
parent7daf2cf7dbfbbfa8f10378c8c16175548bedae87 (diff)
downloadvolse-hubzilla-8d71fe91f67eeb501efd6fedd17992c12882daeb.tar.gz
volse-hubzilla-8d71fe91f67eeb501efd6fedd17992c12882daeb.tar.bz2
volse-hubzilla-8d71fe91f67eeb501efd6fedd17992c12882daeb.zip
cleanup editpost
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);
}