]> git.mxchange.org Git - friendica.git/blobdiff - mod/toggle_mobile.php
Remove redundant htmlentities/htmlspecialchars
[friendica.git] / mod / toggle_mobile.php
index 12a61152733033bb66de307e19e4748592d6a991..388c40891a80b2d64419e96daf6d775f1bd82361 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\System;
 
 function toggle_mobile_init(App $a) {
 
@@ -13,8 +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);
 }