]> git.mxchange.org Git - friendica.git/blobdiff - mod/ignored.php
missing linebreaks and a small typo
[friendica.git] / mod / ignored.php
index a311713077f134b305a067a230e7d34819bae72e..5c304c2950c8ae45c96ad457b800a6b63c270158 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\System;
 
 function ignored_init(App $a) {
 
@@ -37,13 +39,10 @@ function ignored_init(App $a) {
        $return_path = ((x($_REQUEST,'return')) ? $_REQUEST['return'] : '');
        if ($return_path) {
                $rand = '_=' . time();
-               if (strpos($return_path, '?')) {
-                       $rand = "&$rand";
-               } else {
-                       $rand = "?$rand";
-               }
+               if(strpos($return_path, '?')) $rand = "&$rand";
+               else $rand = "?$rand";
 
-               goaway(App::get_baseurl() . "/" . $return_path . $rand);
+               goaway(System::baseUrl() . "/" . $return_path . $rand);
        }
 
        // the json doesn't really matter, it will either be 0 or 1