]> git.mxchange.org Git - friendica.git/blobdiff - mod/toggle_mobile.php
The curl result is an object, not an array
[friendica.git] / mod / toggle_mobile.php
index 89b73cd4484db62294a05c51724fee32f235f802..388c40891a80b2d64419e96daf6d775f1bd82361 100644 (file)
@@ -1,6 +1,9 @@
 <?php
 
-function toggle_mobile_init(App &$a) {
+use Friendica\App;
+use Friendica\Core\System;
+
+function toggle_mobile_init(App $a) {
 
        if (isset($_GET['off'])) {
                $_SESSION['show-mobile'] = false;
@@ -11,9 +14,8 @@ function toggle_mobile_init(App &$a) {
        if (isset($_GET['address'])) {
                $address = $_GET['address'];
        } else {
-               $address = App::get_baseurl();
+               $address = '';
        }
 
-       goaway($address);
+       System::externalRedirect($address);
 }
-