X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fshare.php;h=f67dd3d200c96aa74c37602e2a360cc439db4638;hb=c4d3ab68785122ff070c65a444aaa0833b746b2b;hp=e97fa82dc89c3d029d09802557ac9691ef957563;hpb=f7272be4a84df43756ec77afd9762d2d47b94e2d;p=friendica.git diff --git a/mod/share.php b/mod/share.php index e97fa82dc8..f67dd3d200 100644 --- a/mod/share.php +++ b/mod/share.php @@ -34,17 +34,17 @@ function share_init(App $a) { } function share_header($author, $profile, $avatar, $guid, $posted, $link) { - $header = "[share author='".str_replace(array("'", "[", "]"), array("'", "[", "]"), $author). - "' profile='".str_replace(array("'", "[", "]"), array("'", "[", "]"), $profile). - "' avatar='".str_replace(array("'", "[", "]"), array("'", "[", "]"), $avatar); + $header = "[share author='".str_replace(["'", "[", "]"], ["'", "[", "]"], $author). + "' profile='".str_replace(["'", "[", "]"], ["'", "[", "]"], $profile). + "' avatar='".str_replace(["'", "[", "]"], ["'", "[", "]"], $avatar); if ($guid) { - $header .= "' guid='".str_replace(array("'", "[", "]"), array("'", "[", "]"), $guid); + $header .= "' guid='".str_replace(["'", "[", "]"], ["'", "[", "]"], $guid); } if ($posted) { - $header .= "' posted='".str_replace(array("'", "[", "]"), array("'", "[", "]"), $posted); + $header .= "' posted='".str_replace(["'", "[", "]"], ["'", "[", "]"], $posted); } - $header .= "' link='".str_replace(array("'", "[", "]"), array("'", "[", "]"), $link)."']"; + $header .= "' link='".str_replace(["'", "[", "]"], ["'", "[", "]"], $link)."']"; return $header; }