diff --git a/phpBB/includes/ucp/ucp_attachments.php b/phpBB/includes/ucp/ucp_attachments.php
index 7b731300b3..ab7c6dfeff 100644
--- a/phpBB/includes/ucp/ucp_attachments.php
+++ b/phpBB/includes/ucp/ucp_attachments.php
@@ -100,25 +100,23 @@ class ucp_attachments extends module
$i = 0;
while ($row = $db->sql_fetchrow($result))
{
- $topic_title = (strlen($row['topic_title']) > 32) ? substr($row['topic_title'], 0, 30) . '...' : $row['topic_title'];
$view_topic = "{$phpbb_root_path}viewtopic.$phpEx$SID&t=" . $row['topic_id'] . '&p=' . $row['post_id'] . '#' . $row['post_id'];
- $topic_title = '' . $topic_title . '';
$template->assign_block_vars('attachrow', array(
- 'ROW_NUMBER' => $i + ($start + 1),
- 'S_ROW_COUNT' => $i,
-
- 'ATTACH_ID' => $row['attach_id'],
- 'FILENAME' => $row['real_filename'],
- 'COMMENT' => str_replace("\n", '
', $row['comment']),
- 'EXTENSION' => $row['extension'],
-
+ 'ROW_NUMBER' => $i + ($start + 1),
+ 'ATTACH_ID' => $row['attach_id'],
+ 'FILENAME' => $row['real_filename'],
+ 'COMMENT' => str_replace("\n", '
', $row['comment']),
+ 'EXTENSION' => $row['extension'],
'SIZE' => ($row['filesize'] >= 1048576) ? (round($row['filesize'] / 1048576 * 100) / 100) . ' ' . $user->lang['MB'] : (($row['filesize'] >= 1024) ? (round($row['filesize'] / 1024 * 100) / 100) . ' ' . $user->lang['KB'] : $row['filesize'] . ' ' . $user->lang['BYTES']),
'DOWNLOAD_COUNT' => $row['download_count'],
'POST_TIME' => $user->format_date($row['filetime'], $user->lang['DATE_FORMAT']),
- 'TOPIC_TITLE' => $topic_title,
+ 'TOPIC_TITLE' => $row['topic_title'],
- 'U_VIEW_ATTACHMENT' => $phpbb_root_path . 'download.' . $phpEx . $SID . '&id=' . $row['attach_id'])
+ 'S_ROW_COUNT' => $i,
+
+ 'U_VIEW_ATTACHMENT' => $phpbb_root_path . 'download.' . $phpEx . $SID . '&id=' . $row['attach_id'],
+ 'U_VIEW_TOPIC' => $view_topic)
);
$i++;
}
diff --git a/phpBB/styles/subSilver/template/ucp_attachments.html b/phpBB/styles/subSilver/template/ucp_attachments.html
index adc8cede47..f6cabb4972 100644
--- a/phpBB/styles/subSilver/template/ucp_attachments.html
+++ b/phpBB/styles/subSilver/template/ucp_attachments.html
@@ -4,28 +4,26 @@
{MESSAGE_TITLE} | -
---|
{MESSAGE_TEXT} {S_HIDDEN_FIELDS} |
-
{MESSAGE_TITLE} | +
{MESSAGE_TEXT} {S_HIDDEN_FIELDS} |
+
# | -{L_FILENAME} | -{L_FILE_COMMENT} | -{L_EXTENSION} | -{L_FILESIZE} | -{L_DOWNLOADS} | -{L_POST_TIME} | -{L_TOPIC_TITLE} | -{L_DELETE} | -
---|---|---|---|---|---|---|---|---|
# | +{L_FILENAME} | +{L_POST_TIME} | + +{L_FILESIZE} | +{L_DOWNLOADS} | +{L_DELETE} | +{attachrow.ROW_NUMBER} | -{attachrow.FILENAME} | -{attachrow.COMMENT} | -{attachrow.EXTENSION} | +{attachrow.FILENAME} {L_TOPIC}: {attachrow.TOPIC_TITLE} |
+ {attachrow.POST_TIME} | +{attachrow.SIZE} | {attachrow.DOWNLOAD_COUNT} | -{attachrow.POST_TIME} | -{attachrow.TOPIC_TITLE} | - |
{L_SORT_BY}: |
- - | |||||||
|
+
{L_UCP_NO_ATTACHMENTS} | -
---|
{L_UCP_NO_ATTACHMENTS} | +