aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2013-11-10 18:27:13 -0800
committerCesar G <prototech91@gmail.com>2014-01-17 19:20:36 -0800
commitbe52a823f871682a7740ca3c8207ac7f88f181f5 (patch)
tree59efc44240155ac9c0a457767201d9188d418920 /phpBB/includes/functions_posting.php
parent691dfd845372034e7b6d691433ca05720e12e267 (diff)
downloadforums-be52a823f871682a7740ca3c8207ac7f88f181f5.tar
forums-be52a823f871682a7740ca3c8207ac7f88f181f5.tar.gz
forums-be52a823f871682a7740ca3c8207ac7f88f181f5.tar.bz2
forums-be52a823f871682a7740ca3c8207ac7f88f181f5.tar.xz
forums-be52a823f871682a7740ca3c8207ac7f88f181f5.zip
[ticket/11915] Provide the attachment file size to the template.
PHPBB3-11915
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 172f4403ac..e14e9e27be 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -862,6 +862,7 @@ function posting_gen_attachment_entry($attachment_data, &$filename_data, $show_a
'ATTACH_ID' => $attach_row['attach_id'],
'S_IS_ORPHAN' => $attach_row['is_orphan'],
'ASSOC_INDEX' => $count,
+ 'FILESIZE' => get_formatted_filesize($attach_row['filesize']),
'U_VIEW_ATTACHMENT' => $download_link,
'S_HIDDEN' => $hidden)