aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2013-12-18 19:23:14 -0800
committerCesar G <prototech91@gmail.com>2014-01-17 19:25:12 -0800
commitebc2d1dd1bd2a102ee8c8f1b134068e7a1f75c00 (patch)
tree7fee820c60db574ed58d85c5ad1445f74e686ce2 /phpBB/posting.php
parent9a21dec1b609db71bd9ed6b3b74c16d2d8418029 (diff)
downloadforums-ebc2d1dd1bd2a102ee8c8f1b134068e7a1f75c00.tar
forums-ebc2d1dd1bd2a102ee8c8f1b134068e7a1f75c00.tar.gz
forums-ebc2d1dd1bd2a102ee8c8f1b134068e7a1f75c00.tar.bz2
forums-ebc2d1dd1bd2a102ee8c8f1b134068e7a1f75c00.tar.xz
forums-ebc2d1dd1bd2a102ee8c8f1b134068e7a1f75c00.zip
[ticket/11915] Pass the data to the template instead of scraping HTML for it.
PHPBB3-11915
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 6066511d1c..902f1b2175 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1548,8 +1548,9 @@ $template->assign_vars(array(
'S_BBCODE_QUOTE' => $quote_status,
'S_POST_ACTION' => $s_action,
- 'S_HIDDEN_FIELDS' => $s_hidden_fields)
-);
+ 'S_HIDDEN_FIELDS' => $s_hidden_fields,
+ 'S_ATTACH_DATA' => json_encode($message_parser->attachment_data),
+));
/**
* This event allows you to modify template variables for the posting screen