]> git.mxchange.org Git - friendica.git/blobdiff - mod/toggle_mobile.php
Merge remote-tracking branch 'upstream/develop' into diasppora-delivery
[friendica.git] / mod / toggle_mobile.php
index f858d8913e9c26fc2cea16a967439ca139560bf9..388c40891a80b2d64419e96daf6d775f1bd82361 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\System;
+
 function toggle_mobile_init(App $a) {
 
        if (isset($_GET['off'])) {
@@ -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);
 }
-