diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-10-15 15:41:08 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-10-15 15:41:08 +0200 |
commit | dc6a594277cdf5f0393230c316864446a540a999 (patch) | |
tree | f7bffeb5a19d4f6e27d36651ddfd43c5bd5c61fb /include/text.php | |
parent | 9f5c61b1fd7a246ae5327d133842982b8b2385ce (diff) | |
download | volse-hubzilla-dc6a594277cdf5f0393230c316864446a540a999.tar.gz volse-hubzilla-dc6a594277cdf5f0393230c316864446a540a999.tar.bz2 volse-hubzilla-dc6a594277cdf5f0393230c316864446a540a999.zip |
fix label name
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/text.php b/include/text.php index 3173c9eea..fca674099 100644 --- a/include/text.php +++ b/include/text.php @@ -1218,11 +1218,8 @@ function theme_attachments(&$item) { foreach($arr as $r) { $icon = getIconFromType($r['type']); - - $label = urldecode(htmlspecialchars($r['title'], ENT_COMPAT, 'UTF-8')); - if(! $title) - $title = t('unknown.???'); - $title = t('Attachment') . (($r['length']) ? ' ' . userReadableSize($r['length']) : ''); + $label = (($r['title'] == '') ? urldecode(htmlspecialchars($r['title'], ENT_COMPAT, 'UTF-8')) : t('Unknown Attachment')); + $title = t('Attachment') . ' - ' . (($r['length']) ? userReadableSize($r['length']) : t('Size Unknown')); require_once('include/identity.php'); if(is_foreigner($item['author_xchan'])) |