]> 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 51fdcf41a0346e78f2fe54da98f21829a74b6e14..d1a26b3ca21ae9cfb3c59a2d31432ad197a5c142 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 
+use Friendica\App;
+
 function toggle_mobile_init(App $a) {
 
        if (isset($_GET['off'])) {
@@ -11,8 +13,8 @@ function toggle_mobile_init(App $a) {
        if (isset($_GET['address'])) {
                $address = $_GET['address'];
        } else {
-               $address = App::get_baseurl();
+               $address = '';
        }
 
-       goaway($address);
+       $a->redirect($address);
 }