diff --git a/include/functions.php b/include/functions.php index 29b5d4677..06939c636 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4718,13 +4718,16 @@ if (!$ctype) $ctype = __("unknown type"); -# $filename = substr($url, strrpos($url, "/")+1); + $filename = substr($url, strrpos($url, "/")+1); - $entry = format_inline_player($link, $url, $ctype); +# $player = format_inline_player($link, $url, $ctype); # $entry .= " " . # $filename . " (" . $ctype . ")" . ""; + $entry = "
$filename ($ctype)
"; + array_push($entries_html, $entry); $entry = array(); @@ -4736,8 +4739,6 @@ array_push($entries, $entry); } - $rv .= "
"; - if (!get_pref($link, "STRIP_IMAGES")) { if ($always_display_enclosures || !preg_match("/

"; + } } } } - if (count($entries) == 1) { - $rv .= __("Attachment:") . " "; - } else { - $rv .= __("Attachments:") . " "; - } + $rv .= "
". + "" . __('Attachments').""; + $rv .= "
"; - $rv .= join(", ", $entries_html); + foreach ($entries_html as $entry) { $rv .= $entry; }; - $rv .= "
"; + $rv .= "
"; } return $rv;