X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fconversation.php;h=36eded8e8afe1b54ca69b949a6f7228f04adfb24;hb=4053499c38cc4191fd4bf4724d17c968ecd2f756;hp=916a9e229e4bac1190889e5385087ed49e842cc0;hpb=884f44ce94de8fdf26a40751dfd4b61b29765d29;p=friendica.git diff --git a/include/conversation.php b/include/conversation.php index 916a9e229e..36eded8e8a 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -78,7 +78,7 @@ function item_redir_and_replace_images($body, $images, $cid) { $newbody .= $origbody; $cnt = 0; - foreach($images as $image) { + foreach ($images as $image) { // We're depending on the property of 'foreach' (specified on the PHP website) that // it loops over the array starting from the first element and going sequentially // to the last element @@ -324,11 +324,13 @@ function localize_item(&$item){ // add sparkle links to appropriate permalinks $x = stristr($item['plink'],'/display/'); - if($x) { + if ($x) { $sparkle = false; $y = best_link_url($item,$sparkle,true); - if(strstr($y,'/redir/')) + + if (strstr($y,'/redir/')) { $item['plink'] = $y . '?f=&url=' . $item['plink']; + } }