aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/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/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/posting.php')
-rw-r--r--phpBB/posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 0d2cff40bc..192fc69f47 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -484,7 +484,7 @@ $message_parser->get_submitted_attachment_data($post_data['poster_id']);
if ($post_data['post_attachment'] && !$submit && !$refresh && !$preview && $mode == 'edit')
{
// Do not change to SELECT *
- $sql = 'SELECT attach_id, is_orphan, attach_comment, real_filename
+ $sql = 'SELECT attach_id, is_orphan, attach_comment, real_filename, filesize
FROM ' . ATTACHMENTS_TABLE . "
WHERE post_msg_id = $post_id
AND in_message = 0