X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ftoggle_mobile.php;h=8ef2b9fc4ddaa5cd9d22b6bcc2f5ac3ef00d316a;hb=51155d7716da454d74366be3aec557eb7117e308;hp=00991e44ca04da87fb8b0c8664dedd55d30cf385;hpb=b7592fd584b2e7759b40ca37d9c43bf8a64574e6;p=friendica.git diff --git a/mod/toggle_mobile.php b/mod/toggle_mobile.php index 00991e44ca..8ef2b9fc4d 100644 --- a/mod/toggle_mobile.php +++ b/mod/toggle_mobile.php @@ -2,15 +2,17 @@ function toggle_mobile_init(&$a) { - if(isset($_GET['off'])) + if (isset($_GET['off'])) { $_SESSION['show-mobile'] = false; - else + } else { $_SESSION['show-mobile'] = true; + } - if(isset($_GET['address'])) + if (isset($_GET['address'])) { $address = $_GET['address']; - else - $address = $a->get_baseurl(); + } else { + $address = App::get_baseurl(); + } goaway($address); }