]> git.mxchange.org Git - friendica.git/blob - mod/toggle_mobile.php
Merge pull request #6977 from annando/fix-reshare
[friendica.git] / mod / toggle_mobile.php
1 <?php
2
3 use Friendica\App;
4 use Friendica\Core\System;
5
6 function toggle_mobile_init(App $a) {
7
8         if (isset($_GET['off'])) {
9                 $_SESSION['show-mobile'] = false;
10         } else {
11                 $_SESSION['show-mobile'] = true;
12         }
13
14         if (isset($_GET['address'])) {
15                 $address = $_GET['address'];
16         } else {
17                 $address = '';
18         }
19
20         $a->redirect($address);
21 }