]> git.mxchange.org Git - friendica.git/blobdiff - mod/toggle_mobile.php
Merge pull request #7095 from annando/ap-connect
[friendica.git] / mod / toggle_mobile.php
index 8ef2b9fc4ddaa5cd9d22b6bcc2f5ac3ef00d316a..d1a26b3ca21ae9cfb3c59a2d31432ad197a5c142 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 
-function toggle_mobile_init(&$a) {
+use Friendica\App;
+
+function toggle_mobile_init(App $a) {
 
        if (isset($_GET['off'])) {
                $_SESSION['show-mobile'] = false;
@@ -11,9 +13,8 @@ function toggle_mobile_init(&$a) {
        if (isset($_GET['address'])) {
                $address = $_GET['address'];
        } else {
-               $address = App::get_baseurl();
+               $address = '';
        }
 
-       goaway($address);
+       $a->redirect($address);
 }
-