]> git.mxchange.org Git - friendica.git/blobdiff - mod/login.php
Merge pull request #3500 from AndyHee/3.5.2rc
[friendica.git] / mod / login.php
old mode 100755 (executable)
new mode 100644 (file)
index 10b4d30..09f1f5d
@@ -1,10 +1,19 @@
 <?php
 
-function login_content(&$a) {
-       if(x($_SESSION,'theme'))
+use Friendica\App;
+
+function login_content(App $a) {
+       if (x($_SESSION, 'theme')) {
                unset($_SESSION['theme']);
-       if(local_user())
+       }
+
+       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);
+       }
 
-}
\ No newline at end of file
+       return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
+}