]> git.mxchange.org Git - friendica.git/blobdiff - mod/toggle_mobile.php
Merge pull request #6377 from annando/ostatus-notice
[friendica.git] / mod / toggle_mobile.php
index 8ef2b9fc4ddaa5cd9d22b6bcc2f5ac3ef00d316a..388c40891a80b2d64419e96daf6d775f1bd82361 100644 (file)
@@ -1,6 +1,9 @@
 <?php
 
-function toggle_mobile_init(&$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(&$a) {
        if (isset($_GET['address'])) {
                $address = $_GET['address'];
        } else {
-               $address = App::get_baseurl();
+               $address = '';
        }
 
-       goaway($address);
+       System::externalRedirect($address);
 }
-