X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flike.php;h=c542a540abce6a3ae174d844c8c9f67b4768d082;hb=e5429b2d174a2410a06079f13de24ece013733b9;hp=7932fc149c7664b7484a314cdaf44a32c5160edd;hpb=fef61a28cc7dc8d11774ca0233739f5c5f694a1a;p=friendica.git diff --git a/mod/like.php b/mod/like.php old mode 100644 new mode 100755 index 7932fc149c..c542a540ab --- a/mod/like.php +++ b/mod/like.php @@ -1,28 +1,27 @@ argc > 1) ? notags(trim($a->argv[1])) : 0); $r = do_like($item_id, $verb); - if (!$r) { - return; - } + if (!$r) return; // See if we've been passed a return path to redirect to $return_path = ((x($_REQUEST,'return')) ? $_REQUEST['return'] : ''); @@ -38,13 +37,10 @@ function like_content(App $a) { function like_content_return($baseurl, $return_path) { - 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($baseurl . "/" . $return_path . $rand); }