fix label name

This commit is contained in:
Mario Vavti 2015-10-15 15:41:08 +02:00
parent 9f5c61b1fd
commit dc6a594277

View File

@ -1218,11 +1218,8 @@ function theme_attachments(&$item) {
foreach($arr as $r) { foreach($arr as $r) {
$icon = getIconFromType($r['type']); $icon = getIconFromType($r['type']);
$label = (($r['title'] == '') ? urldecode(htmlspecialchars($r['title'], ENT_COMPAT, 'UTF-8')) : t('Unknown Attachment'));
$label = urldecode(htmlspecialchars($r['title'], ENT_COMPAT, 'UTF-8')); $title = t('Attachment') . ' - ' . (($r['length']) ? userReadableSize($r['length']) : t('Size Unknown'));
if(! $title)
$title = t('unknown.???');
$title = t('Attachment') . (($r['length']) ? ' ' . userReadableSize($r['length']) : '');
require_once('include/identity.php'); require_once('include/identity.php');
if(is_foreigner($item['author_xchan'])) if(is_foreigner($item['author_xchan']))