aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_attachments.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-11-08 18:12:46 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-11-08 18:12:46 +0000
commit4a05ef300b1add482bed6efe061d52ce765bad34 (patch)
treeb7c695b4a7c3e4b123ce34b063d3dfda3b9ddbda /phpBB/includes/ucp/ucp_attachments.php
parentdd5120f95e0e9df6fd4d5b903756b2cb8e2dcf1a (diff)
downloadforums-4a05ef300b1add482bed6efe061d52ce765bad34.tar
forums-4a05ef300b1add482bed6efe061d52ce765bad34.tar.gz
forums-4a05ef300b1add482bed6efe061d52ce765bad34.tar.bz2
forums-4a05ef300b1add482bed6efe061d52ce765bad34.tar.xz
forums-4a05ef300b1add482bed6efe061d52ce765bad34.zip
Some minor alterations to neaten it up a little ... hopefully Acyd won't be too upset
git-svn-id: file:///svn/phpbb/trunk@4656 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_attachments.php')
-rw-r--r--phpBB/includes/ucp/ucp_attachments.php22
1 files changed, 10 insertions, 12 deletions
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&amp;t=" . $row['topic_id'] . '&amp;p=' . $row['post_id'] . '#' . $row['post_id'];
- $topic_title = '<a href="' . $view_topic . '" class="gen" target="_blank">' . $topic_title . '</a>';
$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", '<br />', $row['comment']),
- 'EXTENSION' => $row['extension'],
-
+ 'ROW_NUMBER' => $i + ($start + 1),
+ 'ATTACH_ID' => $row['attach_id'],
+ 'FILENAME' => $row['real_filename'],
+ 'COMMENT' => str_replace("\n", '<br />', $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'],
+
+ 'S_ROW_COUNT' => $i,
- 'U_VIEW_ATTACHMENT' => $phpbb_root_path . 'download.' . $phpEx . $SID . '&amp;id=' . $row['attach_id'])
+ 'U_VIEW_ATTACHMENT' => $phpbb_root_path . 'download.' . $phpEx . $SID . '&amp;id=' . $row['attach_id'],
+ 'U_VIEW_TOPIC' => $view_topic)
);
$i++;
}