X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fstarred.php;h=ce0c8fc09c658652234aac744d325cfe1edb6d3b;hb=ab5669e09190d05be8bfa62f2b82846631c2409d;hp=0a78f51aa7ecd00d7b701f1ee4021a22ac0e5655;hpb=b9e4b9f2747deb5cdd7d7f68e200496e0c3162aa;p=friendica.git diff --git a/mod/starred.php b/mod/starred.php index 0a78f51aa7..ce0c8fc09c 100644 --- a/mod/starred.php +++ b/mod/starred.php @@ -1,11 +1,15 @@ $starred], ['id' => $message_id]); // See if we've been passed a return path to redirect to $return_path = ((x($_REQUEST,'return')) ? $_REQUEST['return'] : ''); - if($return_path) { + 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