diff options
| author | Cesar G <prototech91@gmail.com> | 2013-12-18 19:23:14 -0800 |
|---|---|---|
| committer | Cesar G <prototech91@gmail.com> | 2014-01-17 19:25:12 -0800 |
| commit | ebc2d1dd1bd2a102ee8c8f1b134068e7a1f75c00 (patch) | |
| tree | 7fee820c60db574ed58d85c5ad1445f74e686ce2 /phpBB/posting.php | |
| parent | 9a21dec1b609db71bd9ed6b3b74c16d2d8418029 (diff) | |
| download | forums-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.php | 5 |
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 |
