mirror of
https://github.com/friendica/friendica
synced 2024-11-14 02:43:43 +01:00
Roland Häder
7a9456d5ac
Fixed some stuff: - converted some files from DOS to Uni* (CRLF -> LF) - removed trailing white-spaces Signed-off-by: Roland Häder <roland@mxchange.org>
20 lines
329 B
PHP
20 lines
329 B
PHP
<?php
|
|
|
|
use Friendica\App;
|
|
|
|
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());
|
|
}
|
|
|
|
return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
|
|
}
|